* decl2.c (lang_decode_option): Handle -Wformat=2.
authorJoseph Myers <jsm28@cam.ac.uk>
Tue, 9 Jan 2001 10:37:02 +0000 (10:37 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 9 Jan 2001 10:37:02 +0000 (10:37 +0000)
From-SVN: r38825

gcc/cp/ChangeLog
gcc/cp/decl2.c

index 088a2798edb7f9d3b8e0cff4b2d9f87d49f9db10..4c84be0b506b46fe295e8cfc73bcf035d07360eb 100644 (file)
@@ -1,3 +1,7 @@
+2001-01-09  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * decl2.c (lang_decode_option): Handle -Wformat=2.
+
 2001-01-08  Nathan Sidwell  <nathan@codesourcery.com>
 
        * cp-tree.h (lang_decl_flags): Rename defined_in_class to
index a8269c28f0f5b879e8cac2a56c4988947343c009..e07a7498e980928aabf3eef76e3345c9c423124d 100644 (file)
@@ -733,6 +733,8 @@ lang_decode_option (argc, argv)
        warn_float_equal = setting;
       else if (!strcmp (p, "format"))
        set_Wformat (setting);
+      else if (!strcmp (p, "format=2"))
+       set_Wformat (2);
       else if (!strcmp (p, "format-y2k"))
        warn_format_y2k = setting;
       else if (!strcmp (p, "format-extra-args"))