From dfb45725c90e49a7b2f1301b33bbeb21ee6f67a1 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 13 Apr 1997 12:50:30 -0400 Subject: (cpp_handle_options): Set warn_undef from -Wundef and -Wno-undef. From-SVN: r13879 --- gcc/cpplib.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/cpplib.c') diff --git a/gcc/cpplib.c b/gcc/cpplib.c index f7e43ff..6e2177e 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -6490,6 +6490,10 @@ cpp_handle_options (pfile, argc, argv) opts->warn_stringify = 1; else if (!strcmp (argv[i], "-Wno-traditional")) opts->warn_stringify = 0; + else if (!strcmp (argv[i], "-Wundef")) + opts->warn_undef = 1; + else if (!strcmp (argv[i], "-Wno-undef")) + opts->warn_undef = 0; else if (!strcmp (argv[i], "-Wimport")) opts->warn_import = 1; else if (!strcmp (argv[i], "-Wno-import")) -- cgit v1.1