9311 ufs/mount: comparison between pointer and zero character constant

Review Request #974 — Created March 18, 2018 and submitted

tsoome
illumos-gate
9311
69474a1...
general
mount.c:536:25: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
    if (mnt->mnt_mntopts != '\0')
                         ^~
mount.c:536:8: note: did you mean to dereference the pointer?
    if (mnt->mnt_mntopts != '\0')
        ^
mount.c:545:25: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
    if (mnt->mnt_mntopts != '\0')
                         ^~
mount.c:545:8: note: did you mean to dereference the pointer?
    if (mnt->mnt_mntopts != '\0')
        ^
cc1: all warnings being treated as errors


seeemef@mac.com
  1. Ship It!
  2. 
      
jbk
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...