Project

General

Profile

Bug #11090

libconv: NULL pointer errors

Added by Toomas Soome 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2019-05-31
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

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 ../common/corenote.c:37:
    ../common/corenote.c: In function 'conv_cnote_auxv_type':
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/corenote.c:115:3: note: in expansion of macro 'NULL'
       NULL,    NULL,
       ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'types_2014_2028[10]')
     #define NULL ((void *)0)
                  ^
    ../common/corenote.c:115:3: note: in expansion of macro 'NULL'
       NULL,    NULL,
       ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/corenote.c:115:12: note: in expansion of macro 'NULL'
       NULL,    NULL,
                ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'types_2014_2028[11]')
     #define NULL ((void *)0)
                  ^
    ../common/corenote.c:115:12: note: in expansion of macro 'NULL'
       NULL,    NULL,
                ^~~~
    ../common/corenote.c: In function 'conv_cnote_fileflags':
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/corenote.c:2481:8: note: in expansion of macro 'NULL'
       { 0, NULL },
            ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'vda[18].v_msg')
     #define NULL ((void *)0)
                  ^
    ../common/corenote.c:2481:8: note: in expansion of macro 'NULL'
       { 0, NULL },
            ^~~~
    ../common/corenote.c: In function 'conv_cnote_filemode':
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../common/corenote.c:2533:8: note: in expansion of macro 'NULL'
       { 0, NULL },
            ^~~~
    /code/illumos-gate/proto/root_i386/usr/include/sys/null.h:32:14: note: (near initialization for 'vda[13].v_msg')
     #define NULL ((void *)0)
                  ^
    ../common/corenote.c:2533:8: note: in expansion of macro 'NULL'
       { 0, NULL },
            ^~~~
    ../common/corenote.c:2572:5: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
       s = NULL;
         ^
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 4 months ago

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

git commit ffca9b6bef40a4b4cb6c2739812326c6234f7984

commit  ffca9b6bef40a4b4cb6c2739812326c6234f7984
Author: Toomas Soome <tsoome@me.com>
Date:   2019-06-28T15:59:38.000Z

    11090 libconv: NULL pointer errors
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF