c-common.c (c_common_truthvalue_conversion): Warn also for suspicious conditional...
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 5 Oct 2016 18:34:17 +0000 (18:34 +0000)
committerBernd Edlinger <edlinger@gcc.gnu.org>
Wed, 5 Oct 2016 18:34:17 +0000 (18:34 +0000)
commit700fff34d219e33b11fa63ac95bc524180781803
treeb1f72734e1bae5fc845deed7efc5b779061235be
parent17a9e3802a32f39707a2ac260f8f97b665a44c87
c-common.c (c_common_truthvalue_conversion): Warn also for suspicious conditional expression in boolean context when...

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

        * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
        conditional expression in boolean context when only one arm is
        non-boolean.

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

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

From-SVN: r240799
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wint-in-bool-context.c