This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/38938] -Wno-all doesn't work on -Wpointer-sign
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2009 23:54:49 -0000
- Subject: [Bug c/38938] -Wno-all doesn't work on -Wpointer-sign
- References: <bug-38938-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from hjl dot tools at gmail dot com 2009-01-22 23:54 -------
This patch
Index: gcc/c-opts.c
===================================================================
--- gcc/c-opts.c (revision 5064)
+++ gcc/c-opts.c (working copy)
@@ -425,7 +425,7 @@ c_common_handle_option (size_t scode, co
cpp_opts->warn_num_sign_change = value;
if (warn_pointer_sign == -1)
- warn_pointer_sign = 1;
+ warn_pointer_sign = value;
break;
case OPT_Wbuiltin_macro_redefined:
works for me.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38938