[Bug c++/77513] -Wzero-as-null-pointer-constant vs 0, nullptr, NULL and __null
petschy at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Sep 7 12:38:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77513
--- Comment #2 from petschy at gmail dot com ---
I don't want to enable them. The problem is not with too little but too many
warnings.
A snippet from one of the problematic files:
{ NULL, NULL, false, false }
is preprocessed to
{
# 62 "AdsPlugin.cpp" 3 4
__null
# 62 "AdsPlugin.cpp"
,
# 62 "AdsPlugin.cpp" 3 4
__null
# 62 "AdsPlugin.cpp"
, false, false }
};
Here I see the same flags, yet for these two NULLs gcc warns.
More information about the Gcc-bugs
mailing list