c-common.c (c_common_truthvalue_conversion): Warn only for signed integer shift ops...
authorBernd Edlinger <edlinger@gcc.gnu.org>
Wed, 19 Oct 2016 21:00:39 +0000 (21:00 +0000)
committerBernd Edlinger <edlinger@gcc.gnu.org>
Wed, 19 Oct 2016 21:00:39 +0000 (21:00 +0000)
commit4c712374189739d77d7eaa7a3977ce8533e15163
tree480d808d16c12ad38fd79a06b8bb8ab85fdb929b
parentf3070dab7a2ded2c2ee612d6e48ca01b77327379
c-common.c (c_common_truthvalue_conversion): Warn only for signed integer shift ops in boolean context.

2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * c-common.c (c_common_truthvalue_conversion): Warn only for signed
        integer shift ops in boolean context.

testsuite:
2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * c-c++-common/Wint-in-bool-context-2.c: New test.

From-SVN: r241354
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wint-in-bool-context-2.c [new file with mode: 0644]