9147 sun_sas: comparison between pointer and zero character constant

Review Request #880 - Created Feb. 20, 2018 and submitted

Information
Toomas Soome
illumos-gate
9147
acb1085...
Reviewers
general
../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

  

Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
C Fraire
Andy Fiddaman
Toomas Soome
Andy Fiddaman
C Fraire
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...