11165 libshare: NULL pointer errors

Review Request #1950 - Created June 1, 2019 and submitted

Information
Toomas Soome
illumos-gate
11165
c213b30...
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 ../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

  
C Fraire
Andrew Stormont
Toomas Soome
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...