9031 sgs/libld: comparison between pointer and zero character constant

Review Request #833 - Created Feb. 5, 2018 and submitted

Information
Toomas Soome
illumos-gate
9031
c43d3e3...
Reviewers
general
../common/map_core.c: In function 'cdir_process':
../common/map_core.c:1595:21: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
  assert(mf->mf_next == '\0');
                     ^
/code/illumos-gate/proto/root_i386/usr/include/assert.h:75:28: note: in definition of macro 'assert'
 #define assert(EX) (void)((EX) || \
                            ^~
../common/map_core.c:1595:9: note: did you mean to dereference the pointer?
  assert(mf->mf_next == '\0');
         ^
/code/illumos-gate/proto/root_i386/usr/include/assert.h:75:28: note: in definition of macro 'assert'
 #define assert(EX) (void)((EX) || \
                            ^~
cc1: all warnings being treated as errors

  
Yuri Pankov
Igor Kozhukhov
Andrew Stormont
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...