diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-03-04 20:28:52 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-03-04 20:28:52 +0000 |
commit | ee8ea0873559dc4f8d629bc516286f30ee8db074 (patch) | |
tree | a4bcb1a165cff7bf3009a5e1b63f35b6f7e4fdd3 /gcc/opts.c | |
parent | b52209728c23e229bb55e858aec048da305e2c42 (diff) | |
download | gcc-ee8ea0873559dc4f8d629bc516286f30ee8db074.zip gcc-ee8ea0873559dc4f8d629bc516286f30ee8db074.tar.gz gcc-ee8ea0873559dc4f8d629bc516286f30ee8db074.tar.bz2 |
re PR other/28322 (GCC new warnings and compatibility)
2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR 28322
* opts.c (handle_option): Postpone 'unknown option' errors only for
warning options.
testsuite/
* gcc.dg/pr28322-3.c: New.
From-SVN: r132870
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -505,7 +505,7 @@ handle_option (const char **argv, unsigned int lang_mask) opt = dup; value = 0; opt_index = find_opt (opt + 1, lang_mask | CL_COMMON | CL_TARGET); - if (opt_index == cl_options_count) + if (opt_index == cl_options_count && opt[1] == 'W') { /* We don't generate errors for unknown -Wno-* options unless we issue diagnostics. */ |