aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-format.c
diff options
context:
space:
mode:
authorJoseph Myers <jsm28@cam.ac.uk>2001-10-02 08:06:56 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2001-10-02 08:06:56 +0100
commited0ea5602b8f9b125eb77a59521ce8a636584704 (patch)
treef322f59311904fa0710bbca7ad5266da3dbe466a /gcc/c-format.c
parent50f5f79326851d0781527f6799cdddfea8332348 (diff)
downloadgcc-ed0ea5602b8f9b125eb77a59521ce8a636584704.zip
gcc-ed0ea5602b8f9b125eb77a59521ce8a636584704.tar.gz
gcc-ed0ea5602b8f9b125eb77a59521ce8a636584704.tar.bz2
c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
* c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94. testsuite: * g++.dg/warn/format1.C: New test. From-SVN: r45941
Diffstat (limited to 'gcc/c-format.c')
-rw-r--r--gcc/c-format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-format.c b/gcc/c-format.c
index e25c29e..3cc880e 100644
--- a/gcc/c-format.c
+++ b/gcc/c-format.c
@@ -497,7 +497,7 @@ enum format_std_version
/* The C standard version C++ is treated as equivalent to
or inheriting from, for the purpose of format features supported. */
-#define CPLUSPLUS_STD_VER STD_C89
+#define CPLUSPLUS_STD_VER STD_C94
/* The C standard version we are checking formats against when pedantic. */
#define C_STD_VER ((int)(c_language == clk_cplusplus \
? CPLUSPLUS_STD_VER \