summaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-03 20:56:22 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-03 20:56:22 +0000
commit76a6e674dcc99316839e64af6262dee504fd1b54 (patch)
treef0e8c65e787de4d8629a814f63958c000e5b164f /gcc/c-common.h
parent72f3368f4dd49c93db258b32a2198b904a24e60d (diff)
downloadgcc-76a6e674dcc99316839e64af6262dee504fd1b54.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38672 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index c37c38a3d78..a5e43e4d5dc 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -513,6 +513,8 @@ extern void c_common_nodes_and_builtins PARAMS ((void));
extern tree build_va_arg PARAMS ((tree, tree));
+extern void c_common_lang_init PARAMS ((void));
+
/* Nonzero if the type T promotes to itself.
ANSI C states explicitly the list of types that promote;
in particular, short promotes to int even if they have the same width. */