10735 pcfs: NULL pointer errors

Review Request #1701 - Created April 11, 2019 and submitted

Information
Toomas Soome
illumos-gate
10735
cf28a52...
Reviewers
general
In file included from ../../common/sys/param.h:48:0,
                 from ../../common/fs/pcfs/pc_vfsops.c:30:
../../common/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../common/fs/pcfs/pc_vfsops.c:121:55: note: in expansion of macro 'NULL'
  { MNTOPT_PCFS_NOCLAMPTIME, noclamptime_cancel, NULL, NULL, NULL },
                                                       ^~~~
../../common/sys/null.h:32:14: note: (near initialization for 'mntopts[5].mo_flags')
 #define NULL ((void *)0)
              ^
../../common/fs/pcfs/pc_vfsops.c:121:55: note: in expansion of macro 'NULL'
  { MNTOPT_PCFS_NOCLAMPTIME, noclamptime_cancel, NULL, NULL, NULL },
                                                       ^~~~
../../common/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../common/fs/pcfs/pc_vfsops.c:122:42: note: in expansion of macro 'NULL'
  { MNTOPT_NOATIME, noatime_cancel, NULL, NULL, NULL },
                                          ^~~~
../../common/sys/null.h:32:14: note: (near initialization for 'mntopts[6].mo_flags')
 #define NULL ((void *)0)
              ^
../../common/fs/pcfs/pc_vfsops.c:122:42: note: in expansion of macro 'NULL'
  { MNTOPT_NOATIME, noatime_cancel, NULL, NULL, NULL },
                                          ^~~~
../../common/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../common/fs/pcfs/pc_vfsops.c:123:38: note: in expansion of macro 'NULL'
  { MNTOPT_ATIME, atime_cancel, NULL, NULL, NULL },
                                      ^~~~
../../common/sys/null.h:32:14: note: (near initialization for 'mntopts[7].mo_flags')
 #define NULL ((void *)0)
              ^
../../common/fs/pcfs/pc_vfsops.c:123:38: note: in expansion of macro 'NULL'
  { MNTOPT_ATIME, atime_cancel, NULL, NULL, NULL },
                                      ^~~~
cc1: all warnings being treated as errors

  
Sebastian Wiedenroth
Robert Mustacchi
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...