10402 mergeq: NULL pointer errors

Review Request #1472 - Created Feb. 12, 2019 and submitted

Information
Toomas Soome
illumos-gate
10402
0a93c65...
Reviewers
general
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_is
o.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/usr/src/lib/mergeq/workq.h:23,
                 from wqt.c:24:
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initiali
zation makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
wqt.c:124:28: note: in expansion of macro 'NULL'
  { "empty", wqt_add, 0, 0, NULL, wqt_empty_args },
                            ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near ini
tialization for 'wq_tests[0].wq_sum')
 #define NULL ((void *)0)
              ^
wqt.c:124:28: note: in expansion of macro 'NULL'
  { "empty", wqt_add, 0, 0, NULL, wqt_empty_args },
                            ^~~~
cc1: all warnings being treated as errors

  

Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
Andrew Stormont
Andy Fiddaman
Toomas Soome
Andy Fiddaman
Gergő Mihály Doma
Robert Mustacchi
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...