From: Eric Botcazou Date: Wed, 15 Feb 2006 09:33:16 +0000 (+0100) Subject: lang.opt: Wvariadic-macros: New option. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c85faf41afd31a3a9ef01ec71ca9b44b44c5f02f;p=gcc.git lang.opt: Wvariadic-macros: New option. 2006-02-13 Eric Botcazou * 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 --- diff --git a/gcc/ada/lang.opt b/gcc/ada/lang.opt index ca2a95c774a..305ff13e873 100644 --- a/gcc/ada/lang.opt +++ b/gcc/ada/lang.opt @@ -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 diff --git a/gcc/ada/misc.c b/gcc/ada/misc.c index 0971808712c..d1ff2c5df5a 100644 --- a/gcc/ada/misc.c +++ b/gcc/ada/misc.c @@ -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. */