diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2008-08-08 01:42:33 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2008-08-08 01:42:33 +0000 |
commit | 03c3034efee5a34b6f19a4f26b49d8341f2df6ea (patch) | |
tree | 2300c0be35b770b93d894135873e555e1b16a416 /gcc/c-common.c | |
parent | 948b3e6723e672dea428fcb87a4930d7e30d116d (diff) | |
download | gcc-03c3034efee5a34b6f19a4f26b49d8341f2df6ea.zip gcc-03c3034efee5a34b6f19a4f26b49d8341f2df6ea.tar.gz gcc-03c3034efee5a34b6f19a4f26b49d8341f2df6ea.tar.bz2 |
c-common.c (c_common_reswords): Also warn about keyword "bool".
* c-common.c (c_common_reswords): Also warn about keyword "bool".
testsuite:
* gcc.dg/Wcxx-compat-2.c: Check for bool/_Bool.
From-SVN: r138859
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index da3dc3b..d2177bf 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -665,7 +665,7 @@ const struct c_common_resword c_common_reswords[] = { "__volatile__", RID_VOLATILE, 0 }, { "asm", RID_ASM, D_ASM }, { "auto", RID_AUTO, 0 }, - { "bool", RID_BOOL, D_CXXONLY }, + { "bool", RID_BOOL, D_CXXONLY | D_CXXWARN }, { "break", RID_BREAK, 0 }, { "case", RID_CASE, 0 }, { "catch", RID_CATCH, D_CXX_OBJC | D_CXXWARN }, |