build fails with very recent gcc 4.6: unused-but-set-variable error
Bug #706703 reported by
Adam Williamson
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
BAMF |
Confirmed
|
Wishlist
|
Unassigned | ||
Unity |
Invalid
|
Wishlist
|
Unassigned | ||
unity-2d |
Invalid
|
Undecided
|
Unassigned | ||
bamf (Ubuntu) |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
After Fedora went to a snapshot of GCC 4.6 trunk from Jan 22nd, build of bamf stopped working. It hits an unused-
bamf-view.c: In function 'bamf_view_
bamf-view.c:543:13: error: variable 'self' set but not used [-Werror=unused-but
-set-variable]
cc1: all warnings being treated as errors
Changed in bamf: | |
status: | New → Confirmed |
Changed in bamf (Ubuntu): | |
status: | New → Confirmed |
Changed in bamf: | |
importance: | Undecided → Wishlist |
Changed in unity: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
Changed in bamf (Ubuntu): | |
importance: | Undecided → Wishlist |
tags: | added: patch |
Changed in unity-2d: | |
status: | New → Confirmed |
Changed in unity-2d: | |
status: | Confirmed → Invalid |
Changed in unity-2d: | |
status: | Invalid → Confirmed |
Changed in unity-2d: | |
status: | Confirmed → Invalid |
Changed in unity: | |
status: | Confirmed → Invalid |
Changed in bamf: | |
assignee: | Jason Smith (jassmith) → nobody |
To post a comment you must log in.
Here's a patch that fixes the build errors, assuming that you want to stay with GNOME_COMPILE_ WARNINGS( maximum) and fix all these errors in place.