Project

General

Profile

Bug #11426

stmfproxy: NULL pointer errors

Added by Toomas Soome about 1 month ago. Updated 22 days ago.

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

100%

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 aluaadm.c:26:
    /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)
                  ^
    aluaadm.c:75: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[3].operand')
     #define NULL ((void *)0)
                  ^
    aluaadm.c:75: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)
                  ^
    aluaadm.c:75: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[3].reserved[0]')
     #define NULL ((void *)0)
                  ^
    aluaadm.c:75:42: note: in expansion of macro 'NULL'
      {NULL, 0, NULL, NULL, 0, NULL, 0, NULL, NULL}
                                              ^~~~
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 22 days ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit 48fde5fb20cd190052b1df46a6d135fe26684fe9

commit  48fde5fb20cd190052b1df46a6d135fe26684fe9
Author: Toomas Soome <tsoome@me.com>
Date:   2019-07-30T18:34:26.000Z

    11426 stmfproxy: NULL pointer errors
    Reviewed by: Andy Fiddaman <andy@omniosce.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF