Project

General

Profile

Bug #11433

stmfadm: NULL pointer errors

Added by Toomas Soome 5 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build errors with NULL pointer:

    In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/stdlib_iso.h:50:0,
                     from /code/illumos-gate/proto/root_i386/usr/include/stdlib.h:37,
                     from stmfadm.c:27:
    /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)
                  ^
    stmfadm.c:246:27: note: in expansion of macro 'NULL'
      {NULL, 0, NULL, NULL, 0, NULL, 0, NULL, NULL}
                               ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'subcommands[24].operand')
     #define NULL ((void *)0)
                  ^
    stmfadm.c:246:27: note: in expansion of macro 'NULL'
      {NULL, 0, NULL, NULL, 0, NULL, 0, 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)
                  ^
    stmfadm.c:246:42: note: in expansion of macro 'NULL'
      {NULL, 0, NULL, NULL, 0, NULL, 0, NULL, NULL}
                                              ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: (near initialization for 'subcommands[24].reserved[0]')
     #define NULL ((void *)0)
                  ^
    stmfadm.c:246:42: note: in expansion of macro 'NULL'
      {NULL, 0, NULL, NULL, 0, NULL, 0, NULL, NULL}
                                              ^~~~
    cc1: all warnings being treated as errors

Also available in: Atom PDF