aboutsummaryrefslogtreecommitdiff
path: root/gcc/c.opt
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-02-19 22:18:50 +0000
committerRichard Henderson <rth@redhat.com>2004-02-19 22:18:50 +0000
commit9822f04709bce6c188cb1e697961c9a8aa67c1b0 (patch)
tree9effadec8dda0ac6017abf144d9416979aa975a1 /gcc/c.opt
parentd557ecb3727e5ad10875cdf60aafad9070fccd5c (diff)
* 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
Diffstat (limited to 'gcc/c.opt')
-rw-r--r--gcc/c.opt4
1 files changed, 4 insertions, 0 deletions
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\"