Bug #11165
libshare: NULL pointer errors
Start date:
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
NULL pointer errors:
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 ../libshare_autofs.c:29: /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) ^ ../libshare_autofs.c:149:6: note: in expansion of macro 'NULL' NULL, 0, 1024, strlen_validator}, ^~~~ /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'proto_options[5].defvalue.intval') #define NULL ((void *)0) ^ ../libshare_autofs.c:149:6: note: in expansion of macro 'NULL' NULL, 0, 1024, strlen_validator}, ^~~~ /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) ^ ../libshare_autofs.c:150:15: note: in expansion of macro 'NULL' {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL} ^~~~ /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'proto_options[6].index') #define NULL ((void *)0) ^ ../libshare_autofs.c:150:15: note: in expansion of macro 'NULL' {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL} ^~~~ /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: incompatible types when initializing type 'enum <anonymous>' using type 'void *' #define NULL ((void *)0) ^ ../libshare_autofs.c:150:21: note: in expansion of macro 'NULL' {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL} ^~~~ /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) ^ ../libshare_autofs.c:150:27: note: in expansion of macro 'NULL' {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL} ^~~~ /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'proto_options[6].defvalue.intval') #define NULL ((void *)0) ^ ../libshare_autofs.c:150:27: note: in expansion of macro 'NULL' {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL} ^~~~ /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) ^ ../libshare_autofs.c:150:33: note: in expansion of macro 'NULL' {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL} ^~~~ /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'proto_options[6].minval') #define NULL ((void *)0) ^ ../libshare_autofs.c:150:33: note: in expansion of macro 'NULL' {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL} ^~~~ /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) ^ ../libshare_autofs.c:150:39: note: in expansion of macro 'NULL' {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL} ^~~~ /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'proto_options[6].maxval') #define NULL ((void *)0) ^ ../libshare_autofs.c:150:39: note: in expansion of macro 'NULL' {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL} ^~~~ 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 ../libshare_smb.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) ^ ../libshare_smb.c:181:10: 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 'optdefs[11].type') #define NULL ((void *)0) ^ ../libshare_smb.c:181:10: note: in expansion of macro 'NULL' { NULL, NULL } ^~~~ 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 ../libshare_nfs.c:31: /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) ^ ../libshare_nfs.c:2541:6: note: in expansion of macro 'NULL' NULL, SVC_NFSMAPID, 0, 0}, ^~~~ /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'proto_options[10].defvalue.intval') #define NULL ((void *)0) ^ ../libshare_nfs.c:2541:6: note: in expansion of macro 'NULL' NULL, SVC_NFSMAPID, 0, 0}, ^~~~ /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) ^ ../libshare_nfs.c:2557:23: note: in expansion of macro 'NULL' OPT_TYPE_STRING, NULL, SVC_NFSD, 0, 0}, ^~~~ /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'proto_options[14].defvalue.intval') #define NULL ((void *)0) ^ ../libshare_nfs.c:2557:23: note: in expansion of macro 'NULL' OPT_TYPE_STRING, NULL, SVC_NFSD, 0, 0}, ^~~~ cc1: all warnings being treated as errors
Updated by Electric Monk over 1 year ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
git commit ff168298deb08c70659ec1a8645952dee5150368
commit ff168298deb08c70659ec1a8645952dee5150368 Author: Toomas Soome <tsoome@me.com> Date: 2019-07-03T20:49:20.000Z 11165 libshare: NULL pointer errors Reviewed by: C Fraire <cfraire@me.com> Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Approved by: Richard Lowe <richlowe@richlowe.net>