11397 mpathadm: NULL pointer errors

Review Request #2119 - Created July 11, 2019 and submitted - Latest diff uploaded

Information
Toomas Soome
illumos-gate
11397
ae29429...
Reviewers
general
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_iso.h:49:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                 from /code/illumos-gate/proto/root_i386/usr/include/mpapi.h:62,
                 from mpathadm.c:34:
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
mpathadm.c:192:18: note: in expansion of macro 'NULL'
  {0, 0, 0, 0, 0, NULL}
                  ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'objectRules[4].opCmd.multOpCmd')
 #define NULL ((void *)0)
              ^
mpathadm.c:192:18: note: in expansion of macro 'NULL'
  {0, 0, 0, 0, 0, NULL}
                  ^~~~
cc1: all warnings being treated as errors

  
Loading...