diff options
author | Jason Merrill <jason@redhat.com> | 2003-01-28 14:30:00 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2003-01-28 14:30:00 -0500 |
commit | 9fbd3e416654b42041026f9d51d1115a42dd5d34 (patch) | |
tree | e935857a003fa751109e2bb1c411f1ff70dd7772 /gcc/cppinit.c | |
parent | fe352c2900b2bfc9af52a1f761063a6bb974acdb (diff) | |
download | gcc-9fbd3e416654b42041026f9d51d1115a42dd5d34.zip gcc-9fbd3e416654b42041026f9d51d1115a42dd5d34.tar.gz gcc-9fbd3e416654b42041026f9d51d1115a42dd5d34.tar.bz2 |
cpplib.h (struct cpp_options): Add warn_deprecated field.
* cpplib.h (struct cpp_options): Add warn_deprecated field.
* cppinit.c (cpp_create_reader): Turn it on by default.
* c-opts.c (c_common_decode_option): Set it.
* cpplib.c (do_pragma_once): Only complain about #pragma once
if warn_deprecated is set.
From-SVN: r62005
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 324cb77..591b4bf 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -527,6 +527,7 @@ cpp_create_reader (lang) CPP_OPTION (pfile, tabstop) = 8; CPP_OPTION (pfile, operator_names) = 1; CPP_OPTION (pfile, warn_endif_labels) = 1; + CPP_OPTION (pfile, warn_deprecated) = 1; CPP_OPTION (pfile, warn_long_long) = !CPP_OPTION (pfile, c99); CPP_OPTION (pfile, pending) = |