diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2016-10-03 08:00:21 +0000 |
---|---|---|
committer | Bernd Edlinger <edlinger@gcc.gnu.org> | 2016-10-03 08:00:21 +0000 |
commit | 1633d3b91af987aefd53b64cd4071923e1f45502 (patch) | |
tree | 93439ae229ea677d34c8945bc24e460dd4b880de /gcc/cp/parser.c | |
parent | 21d7b03ca169ff93b6eb4e3432bf0e01a80819ba (diff) | |
download | gcc-1633d3b91af987aefd53b64cd4071923e1f45502.zip gcc-1633d3b91af987aefd53b64cd4071923e1f45502.tar.gz gcc-1633d3b91af987aefd53b64cd4071923e1f45502.tar.bz2 |
invoke.texi: Update -Wint-in-bool-context.
2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
* doc/invoke.texi: Update -Wint-in-bool-context.
c-family:
2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
* c-common.c (c_common_truthvalue_conversion): Warn for suspicious
left shift in boolean context.
cp:
2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
* parser.c (cp_parser_condition): Fix a warning.
testsuite:
2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
* c-c++-common/Wint-in-bool-context.c: Update test.
From-SVN: r240706
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r-- | gcc/cp/parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index f672b8d..16b895c 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -11244,7 +11244,7 @@ cp_parser_condition (cp_parser* parser) { tree pushed_scope; bool non_constant_p; - bool flags = LOOKUP_ONLYCONVERTING; + int flags = LOOKUP_ONLYCONVERTING; /* Create the declaration. */ decl = start_decl (declarator, &type_specifiers, |