From 9822f04709bce6c188cb1e697961c9a8aa67c1b0 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 19 Feb 2004 22:18:50 +0000 Subject: * c-opts.c (warn_variadic_macros): New. (c_common_handle_option): Set it. (sanitize_cpp_opts): Copy it to cpp_opts. * c.opt (Wvariadic-macros): New. * cpplib.h (struct cpp_options): Add warn_variadic_macros. * cppinit.c (cpp_create_reader): Initialize it. * cppmacro.c (parse_params): Check it. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@78125 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c.opt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/c.opt') diff --git a/gcc/c.opt b/gcc/c.opt index 2a2ff85b738..0674627bb92 100644 --- a/gcc/c.opt +++ b/gcc/c.opt @@ -399,6 +399,10 @@ Wunused-macros C ObjC C++ ObjC++ Warn about macros defined in the main file that are not used +Wvariadic-macros +C ObjC C++ ObjC++ +Do not warn about using variadic macros when -pedantic + Wwrite-strings C ObjC C++ ObjC++ Give strings the type \"array of char\" -- cgit v1.2.3