diff options
author | Richard Henderson <rth@redhat.com> | 2004-02-19 14:18:50 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-02-19 14:18:50 -0800 |
commit | e5b792193379be3beab505f1a72fb4fedaf62e6b (patch) | |
tree | 9effadec8dda0ac6017abf144d9416979aa975a1 /gcc/cppinit.c | |
parent | 2df93cf3c4021f576c9381f6e25d9d847114f548 (diff) | |
download | gcc-e5b792193379be3beab505f1a72fb4fedaf62e6b.zip gcc-e5b792193379be3beab505f1a72fb4fedaf62e6b.tar.gz gcc-e5b792193379be3beab505f1a72fb4fedaf62e6b.tar.bz2 |
c-opts.c (warn_variadic_macros): New.
* 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.
From-SVN: r78125
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r-- | gcc/cppinit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index ed91b0e..a6da0b6 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -147,6 +147,7 @@ cpp_create_reader (enum c_lang lang, hash_table *table, CPP_OPTION (pfile, warn_long_long) = !CPP_OPTION (pfile, c99); CPP_OPTION (pfile, dollars_in_ident) = 1; CPP_OPTION (pfile, warn_dollars) = 1; + CPP_OPTION (pfile, warn_variadic_macros) = 1; /* Default CPP arithmetic to something sensible for the host for the benefit of dumb users like fix-header. */ |