diff options
author | Joseph Myers <jsm28@cam.ac.uk> | 2001-01-03 20:56:22 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2001-01-03 20:56:22 +0000 |
commit | 03dc032560d43abc8a9867472fdb22cbf0c6b9c7 (patch) | |
tree | f0e8c65e787de4d8629a814f63958c000e5b164f /gcc/objc | |
parent | 955be6336a2f53d6b15909ddcccee87cfee57674 (diff) | |
download | gcc-03dc032560d43abc8a9867472fdb22cbf0c6b9c7.zip gcc-03dc032560d43abc8a9867472fdb22cbf0c6b9c7.tar.gz gcc-03dc032560d43abc8a9867472fdb22cbf0c6b9c7.tar.bz2 |
c-common.c (c_common_lang_init): New function.
* c-common.c (c_common_lang_init): New function. Warn if format
warning options which only have effects when used with -Wformat
are used without -Wformat.
* c-common.h (c_common_lang_init): Declare.
* c-lang.c (lang_init): Call c_common_lang_init.
* objc/objc-act.c (lang_init): Call c_common_lang_init.
cp:
* lex.c (lang_init): Call c_common_lang_init.
From-SVN: r38672
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/objc-act.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 5b6e33a..99f2d23 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -1,6 +1,6 @@ /* Implement classes and message passing for Objective C. Copyright (C) 1992, 1993, 1994, 1995, 1997, 1998, - 1999, 2000 Free Software Foundation, Inc. + 1999, 2000, 2001 Free Software Foundation, Inc. Contributed by Steve Naroff. This file is part of GNU CC. @@ -704,6 +704,8 @@ lang_init () not to be built in. */ lineno = 0; + c_common_lang_init (); + /* If gen_declaration desired, open the output file. */ if (flag_gen_declaration) { |