summaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorJoseph Myers <jsm28@cam.ac.uk>2001-01-03 20:56:22 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2001-01-03 20:56:22 +0000
commit03dc032560d43abc8a9867472fdb22cbf0c6b9c7 (patch)
treef0e8c65e787de4d8629a814f63958c000e5b164f /gcc/c-common.h
parent955be6336a2f53d6b15909ddcccee87cfee57674 (diff)
downloadgcc-03dc032560d43abc8a9867472fdb22cbf0c6b9c7.tar.gz
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/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. */