diff options
author | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-15 09:31:17 +0000 |
---|---|---|
committer | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-15 09:31:17 +0000 |
commit | 21dd958800ce8dfc89be000f614bbefe709ad04b (patch) | |
tree | e8af0c2a48f55bb04305f893645f855b6871b356 /gcc/c.opt | |
parent | d025094cd3ce62f85ca7d625c9ab04eb8add3504 (diff) | |
download | gcc-21dd958800ce8dfc89be000f614bbefe709ad04b.tar.gz |
2003-09-15 Andreas Jaeger <aj@suse.de>
Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
* c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
* c-parse.in: Warn about old-style parameter definition.
* c-common.c: Define warn_old_style_defintion.
* c-common.h: Declare it.
* c.opt: Add Wold-style-defintion.
testsuite:
2003-09-15 Andreas Jaeger <aj@suse.de>
* gcc.dg/Wold-style-definition-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71400 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c.opt')
-rw-r--r-- | gcc/c.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c.opt b/gcc/c.opt index bfe81aa3d8f..6c4d12eb433 100644 --- a/gcc/c.opt +++ b/gcc/c.opt @@ -312,6 +312,10 @@ Wold-style-cast C++ ObjC++ Warn if a C-style cast is used in a program +Wold-style-definition +C ObjC +Warn if an old-style parameter definition is used + Woverloaded-virtual C++ ObjC++ Warn about overloaded virtual function names |