[Bug preprocessor/60304] Including atomic disables -Wconversion-null

2014-02-21 Thread bug-reports at psdtechnologies dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60304

--- Comment #1 from bug-reports at psdtechnologies dot com ---
Created attachment 32191
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=32191action=edit
Similar code behaving as expected


[Bug preprocessor/60304] Including atomic disables -Wconversion-null

2014-02-21 Thread harald at gigawatt dot nl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60304

Harald van Dijk harald at gigawatt dot nl changed:

   What|Removed |Added

 CC||harald at gigawatt dot nl

--- Comment #2 from Harald van Dijk harald at gigawatt dot nl ---
The warning is suppressed because it is supposedly from a system header (even
though clearly, that is not the case) and including -Wsystem-headers on the
command-line shows:

$ gcc-run/bin/g++ -std=c++11 -c test.cc -Wsystem-headers
In file included from
/home/harald/gcc-run/include/c++/4.9.0/bits/atomic_base.h:36:0,
 from /home/harald/gcc-run/include/c++/4.9.0/atomic:41,
 from test.cc:2:
test.cc: In function ‘int* foo()’:
test.cc:3:21: warning: converting ‘false’ to pointer type ‘int*’
[-Wconversion-null]
 int * foo() {return false;}
 ^