10734 tmpfs: NULL pointer errors

Review Request #1700 — Created April 11, 2019 and submitted

tsoome
illumos-gate
10734
dfb96df...
general
In file included from ../../common/sys/param.h:48:0,
                 from ../../common/fs/tmpfs/tmp_vfsops.c:27:
../../common/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../common/fs/tmpfs/tmp_vfsops.c:93:42: note: in expansion of macro 'NULL'
  { MNTOPT_NOXATTR, noxattr_cancel, NULL, NULL,  NULL},
                                          ^~~~
../../common/sys/null.h:32:14: note: (near initialization for 'tmpfs_options[1].mo_flags')
 #define NULL ((void *)0)
              ^
../../common/fs/tmpfs/tmp_vfsops.c:93:42: note: in expansion of macro 'NULL'
  { MNTOPT_NOXATTR, noxattr_cancel, NULL, NULL,  NULL},
                                          ^~~~
cc1: all warnings being treated as errors


marcel
  1. Ship It!
  2. 
      
rm
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...