Project

General

Profile

Bug #9147

sun_sas: comparison between pointer and zero character constant

Added by Toomas Soome over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2018-02-20
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

Issue found by gcc 7 build:

    ../common/devtree_device_disco.c: In function 'get_attached_paths_info':
    ../common/devtree_device_disco.c:721:15: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
       if (charptr != '\0') {
                   ^~
    ../common/devtree_device_disco.c:721:7: note: did you mean to dereference the pointer?
       if (charptr != '\0') {
           ^
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk over 1 year ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit 69b2e41e53282c11528827637e627614e2af615b

commit  69b2e41e53282c11528827637e627614e2af615b
Author: Toomas Soome <tsoome@me.com>
Date:   2018-02-22T15:58:42.000Z

    9147 sun_sas: comparison between pointer and zero character constant
    Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
    Reviewed by: C Fraire <cfraire@me.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF