This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/81484] incorrect -Wint-in-bool-context warning
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 19 Jul 2017 12:49:19 +0000
- Subject: [Bug c/81484] incorrect -Wint-in-bool-context warning
- Auto-submitted: auto-generated
- References: <bug-81484-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81484
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
...which could be simply written as:
void
foo (int c)
{
if (c == 0)
__builtin_abort ();
}