[Bug c/66088] -Wunused-but-set-variable does not regard static variable access in local scope

2015-05-10 Thread vshebordaev at mail dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66088 Vladimir changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/66088] -Wunused-but-set-variable does not regard static variable access in local scope

2015-05-09 Thread vshebordaev at mail dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66088 --- Comment #3 from Vladimir --- Well, I doubt that modification of the static variable has no side effects.

[Bug c/66088] -Wunused-but-set-variable does not regard static variable access in local scope

2015-05-09 Thread vshebordaev at mail dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66088 --- Comment #1 from Vladimir --- Well, the build is broken when -Werror option is specified just like it is expected, I've overlooked a typo.

[Bug c/66088] New: -Wunused-but-set-variable does not regard static variable access in local scope

2015-05-09 Thread vshebordaev at mail dot ru
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: vshebordaev at mail dot ru Target Milestone: --- As of gcc 4.9.2, I get faulty -Wunused-but-set-variable warning (and broken build with -Wall) in this case 1 struct test