lang.opt: Wvariadic-macros: New option.
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 15 Feb 2006 09:33:16 +0000 (10:33 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 15 Feb 2006 09:33:16 +0000 (10:33 +0100)
2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>

* lang.opt: Wvariadic-macros: New option.
Wold-style-definition: Likewise.
Wmissing-format-attribute: Likewise.

* misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
-Wold-style-definition and -Wmissing-format-attribute.

From-SVN: r111037

gcc/ada/lang.opt
gcc/ada/misc.c

index ca2a95c774ab1c5c28847ba43317bd38fef14436..305ff13e87360969e0e74096e3e8f1d515ae4514 100644 (file)
@@ -49,6 +49,18 @@ Wlong-long
 Ada
 ; Documented for C
 
+Wvariadic-macros
+Ada
+; Documented for C
+
+Wold-style-definition
+Ada
+; Documented for C
+
+Wmissing-format-attribute
+Ada
+; Documented for C
+
 nostdinc
 Ada RejectNegative
 ; Don't look for source files
index 0971808712c887428928c47f538688ef2444362d..d1ff2c5df5a9105efdf632c49c95b2d6e1505a0e 100644 (file)
@@ -6,7 +6,7 @@
  *                                                                          *
  *                           C Implementation File                          *
  *                                                                          *
- *          Copyright (C) 1992-2005, Free Software Foundation, Inc.         *
+ *          Copyright (C) 1992-2006, Free Software Foundation, Inc.         *
  *                                                                          *
  * GNAT is free software;  you can  redistribute it  and/or modify it under *
  * terms of the  GNU General Public License as published  by the Free Soft- *
@@ -283,6 +283,9 @@ gnat_handle_option (size_t scode, const char *arg, int value ATTRIBUTE_UNUSED)
     case OPT_Wstrict_prototypes:
     case OPT_Wwrite_strings:
     case OPT_Wlong_long:
+    case OPT_Wvariadic_macros:
+    case OPT_Wold_style_definition:
+    case OPT_Wmissing_format_attribute:
       break;
 
       /* This is handled by the front-end.  */