This is the mail archive of the gcc-patches@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]

(C++) -Wall change


1999-03-29  Jason Merrill  <jason@yorick.cygnus.com>

	* decl2.c (lang_decode_option): Remove -Wsign-promo from -Wall.

Index: decl2.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/decl2.c,v
retrieving revision 1.195
diff -c -p -r1.195 decl2.c
*** decl2.c	1999/03/26 07:44:24	1.195
--- decl2.c	1999/03/30 00:13:11
*************** lang_decode_option (argc, argv)
*** 711,735 ****
  	  warn_return_type = setting;
  	  warn_unused = setting;
  	  warn_implicit = setting;
- 	  warn_ctor_dtor_privacy = setting;
  	  warn_switch = setting;
  	  warn_format = setting;
  	  warn_parentheses = setting;
  	  warn_missing_braces = setting;
  	  warn_sign_compare = setting;
- 	  warn_extern_inline = setting;
- 	  warn_nonvdtor = setting;
  	  warn_multichar = setting;
  	  /* We save the value of warn_uninitialized, since if they put
  	     -Wuninitialized on the command line, we need to generate a
  	     warning about not using it without also specifying -O.  */
  	  if (warn_uninitialized != 1)
  	    warn_uninitialized = (setting ? 2 : 0);
- 	  warn_reorder = setting;
- 	  warn_sign_promo = setting;
  	  /* Only warn about unknown pragmas that are not in system
  	     headers.  */                                        
  	  warn_unknown_pragmas = 1;       
  	  warn_nontemplate_friend = setting;           
  	}
        else return strings_processed;
--- 711,735 ----
  	  warn_return_type = setting;
  	  warn_unused = setting;
  	  warn_implicit = setting;
  	  warn_switch = setting;
  	  warn_format = setting;
  	  warn_parentheses = setting;
  	  warn_missing_braces = setting;
  	  warn_sign_compare = setting;
  	  warn_multichar = setting;
  	  /* We save the value of warn_uninitialized, since if they put
  	     -Wuninitialized on the command line, we need to generate a
  	     warning about not using it without also specifying -O.  */
  	  if (warn_uninitialized != 1)
  	    warn_uninitialized = (setting ? 2 : 0);
  	  /* Only warn about unknown pragmas that are not in system
  	     headers.  */                                        
  	  warn_unknown_pragmas = 1;       
+ 
+ 	  /* C++-specific warnings.  */
+ 	  warn_ctor_dtor_privacy = setting;
+ 	  warn_nonvdtor = setting;
+ 	  warn_reorder = setting;
  	  warn_nontemplate_friend = setting;           
  	}
        else return strings_processed;


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