[Bug c++/78964] gcc fails to detect pointless increment

2017-01-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78964 Martin Sebor changed: What|Removed |Added Keywords||diagnostic CC|

[Bug c++/78964] gcc fails to detect pointless increment

2017-01-03 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78964 --- Comment #9 from joseph at codesourcery dot com --- See bug 44677.

[Bug c++/78964] gcc fails to detect pointless increment

2017-01-03 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78964 --- Comment #8 from Markus Trippelsdorf --- (In reply to David Binderman from comment #7) > (In reply to Markus Trippelsdorf from comment #4) > > And the Linux kernel would not see these warnings anyway: > > > > Makefile: > > 707 # These warnin

[Bug c++/78964] gcc fails to detect pointless increment

2017-01-03 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78964 --- Comment #7 from David Binderman --- (In reply to Markus Trippelsdorf from comment #4) > And the Linux kernel would not see these warnings anyway: > > Makefile: > 707 # These warnings generated too much noise in a regular build. > 708 # Use

[Bug c++/78964] gcc fails to detect pointless increment

2017-01-03 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78964 Manuel López-Ibáñez changed: What|Removed |Added CC||manu at gcc dot gnu.org --- Commen

[Bug c++/78964] gcc fails to detect pointless increment

2017-01-01 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78964 Markus Trippelsdorf changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/78964] gcc fails to detect pointless increment

2017-01-01 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78964 --- Comment #4 from Markus Trippelsdorf --- And the Linux kernel would not see these warnings anyway: Makefile: 707 # These warnings generated too much noise in a regular build. 708 # Use make W=1 to enable them (see scripts/Makefile.build) 7

[Bug c++/78964] gcc fails to detect pointless increment

2017-01-01 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78964 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug c++/78964] gcc fails to detect pointless increment

2017-01-01 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78964 --- Comment #2 from David Binderman --- >Why should it warn? For all the same reasons as warning -Wunused-but-set-variable. See the following code: extern void g( int); void f( int n) { int m = 0; int m2 = 2; for (int

[Bug c++/78964] gcc fails to detect pointless increment

2017-01-01 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78964 Markus Trippelsdorf changed: What|Removed |Added CC||trippels at gcc dot gnu.org --- Co