[Bug c/37866] "passing argument from incompatible pointer type" warning cannot be passed to -Werror=

rsc at swtch dot com gcc-bugzilla@gcc.gnu.org
Wed Sep 9 23:30:00 GMT 2009



------- Comment #7 from rsc at swtch dot com  2009-09-09 23:30 -------
There is a difference between warnings about things that might
be wrong in your code and warnings about things that are definitely wrong.
This is one of the latter, and it is a shame that it's not already an error
by default.  I understand the historical rationale but it is still unfortunate.
integer/pointer without a cast is another one.  If I could make these
errors I most certainly would.  As it is I run gcc in a wrapper script
and exit 1 if gcc emits that particular warning.


-- 

rsc at swtch dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rsc at swtch dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37866



More information about the Gcc-bugs mailing list