diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-08 01:42:33 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-08 01:42:33 +0000 |
commit | dbd982c9ae226fc59d85e0bce6d7bbc174dc83f7 (patch) | |
tree | 2300c0be35b770b93d894135873e555e1b16a416 /gcc/c-common.c | |
parent | efc438c4536120836d71843955206d89f9c419e8 (diff) | |
download | gcc-dbd982c9ae226fc59d85e0bce6d7bbc174dc83f7.tar.gz |
* c-common.c (c_common_reswords): Also warn about keyword "bool".
testsuite:
* gcc.dg/Wcxx-compat-2.c: Check for bool/_Bool.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138859 138bc75d-0d04-0410-961f-82ee72b054a4
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 da3dc3bc48b..d2177bff2e1 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 }, |