11345 halt: NULL pointer errors
Review Request #2081 — Created July 6, 2019 and submitted
Information | |
---|---|
tsoome | |
illumos-gate | |
11345 | |
9790ed3... | |
Reviewers | |
general | |
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/stdio_iso.h:53:0, from /code/illumos-gate/proto/root_i386/usr/include/stdio.h:82, from halt.c:52: halt.c: In function 'main': /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) ^ halt.c:1266:19: note: in expansion of macro 'NULL' uintptr_t mdep = NULL; ^~~~ /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 3 of 'uadmin' makes integer from pointer without a cast [-Werror=int-conversion] #define NULL ((void *)0) ^ halt.c:1611:36: note: in expansion of macro 'NULL' (void) uadmin(A_DUMP, AD_NOSYNC, NULL); ^~~~ In file included from halt.c:58:0: /code/illumos-gate/proto/root_i386/usr/include/sys/uadmin.h:165:12: note: expected 'uintptr_t {aka unsigned int}' but argument is of type 'void *' extern int uadmin(int, int, uintptr_t); ^~~~~~ cc1: all warnings being treated as errors