This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/38938] -Wno-all doesn't work on -Wpointer-sign



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]