summaryrefslogtreecommitdiff
path: root/gcc/c.opt
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-02-19 22:18:50 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-02-19 22:18:50 +0000
commit05d51900dfa4ae5e5e8ed9c99a249cb22cf227c8 (patch)
tree9effadec8dda0ac6017abf144d9416979aa975a1 /gcc/c.opt
parenta712130ea5abd998619113f868af34d89fd3f3ca (diff)
downloadgcc-05d51900dfa4ae5e5e8ed9c99a249cb22cf227c8.tar.gz
* 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: svn+ssh://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\"