11424 sbdadm: NULL pointer errors

Review Request #2142 - Created July 11, 2019 and updated

Information
Toomas Soome
illumos-gate
11424
d5ec1e4...
Reviewers
general
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/stdlib_iso.h:50:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/stdlib.h:37,
                 from sbdadm.c:26:
/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)
              ^
sbdadm.c:91:25: note: in expansion of macro 'NULL'
  { NULL, 0, 0, NULL, 0, NULL}
                         ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'subCommands[5].operand')
 #define NULL ((void *)0)
              ^
sbdadm.c:91:25: note: in expansion of macro 'NULL'
  { NULL, 0, 0, NULL, 0, NULL}
                         ^~~~
cc1: all warnings being treated as errors

  

Issues

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

Commit:

-c19ca81536b61b92d89bf07441abc2ef0f7a4b51
+d5ec1e47132bd381f20ba89df60eb754aa82fbbb

Diff:

Revision 2 (+1 -1)

Show changes

Andy Fiddaman
Ship It!
Loading...