Bug 66231 - -Werror=zero-as-null-pointer-constant - errors on -isystem function default values of NULL
Summary: -Werror=zero-as-null-pointer-constant - errors on -isystem function default v...
Status: RESOLVED DUPLICATE of bug 43486
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 6.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-20 23:08 UTC by Michael Darling
Modified: 2015-05-21 22:05 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Darling 2015-05-20 23:08:28 UTC
I'm using -Werror=zero-as-null-pointer-constant.

I'm using a library with a header providing default values on some functions of NULL.

gcc trunk issues an error, since I'm using that default value.

But, I included that library's headers with -isystem.

I get that in one sense NULL is "imported" into my source and used, but I really think the spirit of -isystem is being violated here.  I either have to edit library header files which aren't mine, or I can't use -Werror=zero-as-null-pointer-constant.
Comment 1 Paolo Carlini 2015-05-21 22:05:05 UTC
Dup.

*** This bug has been marked as a duplicate of bug 43486 ***