[Bug c/81484] incorrect -Wint-in-bool-context warning

2017-07-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81484 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/81484] incorrect -Wint-in-bool-context warning

2017-07-19 Thread arnd at linaro dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81484 --- Comment #5 from Arnd Bergmann --- (In reply to Marek Polacek from comment #4) > (In reply to Arnd Bergmann from comment #3) > > It seems I got a little confused when I only looked at the initial patch > > that was proposed, which was supposed

[Bug c/81484] incorrect -Wint-in-bool-context warning

2017-07-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81484 --- Comment #4 from Marek Polacek --- (In reply to Arnd Bergmann from comment #3) > It seems I got a little confused when I only looked at the initial patch > that was proposed, which was supposed to cover specifically the comparison > followed b

[Bug c/81484] incorrect -Wint-in-bool-context warning

2017-07-19 Thread arnd at linaro dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81484 --- Comment #3 from Arnd Bergmann --- It seems I got a little confused when I only looked at the initial patch that was proposed, which was supposed to cover specifically the comparison followed by ?: as in https://gcc.gnu.org/ml/gcc-patches/2016

[Bug c/81484] incorrect -Wint-in-bool-context warning

2017-07-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81484 --- Comment #2 from Marek Polacek --- ...which could be simply written as: void foo (int c) { if (c == 0) __builtin_abort (); }

[Bug c/81484] incorrect -Wint-in-bool-context warning

2017-07-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81484 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment