11343 fwflash: NULL pointer errors

Review Request #2079 - Created July 6, 2019 and submitted

Information
Toomas Soome
illumos-gate
11343
3bc458a...
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/sys/time.h:462,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/select.h:53,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/types.h:640,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/nvpair.h:29,
                 from /code/illumos-gate/proto/root_i386/usr/include/libnvpair.h:29,
                 from ../common/ses.c:30:
/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)
              ^
../common/ses.c:121:4: note: in expansion of macro 'NULL'
  { NULL, NULL }
    ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'sam4_status[7].status')
 #define NULL ((void *)0)
              ^
../common/ses.c:121:4: note: in expansion of macro 'NULL'
  { NULL, NULL }
    ^~~~
cc1: all warnings being treated as errors

  
Andrew Stormont
Sebastian Wiedenroth
Garrett D'Amore
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...