Fails to compile with GCC 4.6 (unless using -fpermissive)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nux |
Fix Released
|
High
|
Unassigned | ||
Unity |
Invalid
|
High
|
Unassigned | ||
nux (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Trying to build nux 0.9.36 with GCC 4.6 (Fedora 15) I hit multiple errors in RenderingPipeGL
[adamw@adam SPECS]$ grep error: /var/lib/
./RenderingPipe
./RenderingPipe
./RenderingPipe
./RenderingPipe
./RenderingPipe
./RenderingPipe
./RenderingPipe
./RenderingPipe
./RenderingPipe
./RenderingPipe
./RenderingPipe
./RenderingPipe
./RenderingPipe
./RenderingPipe
./RenderingPipe
./RenderingPipe
./RenderingPipe
./RenderingPipe
from Google, looks like GCC 4.6 is clamping down on some coding error or other here. I don't know what, I'm not a coder. :)
Related branches
- Neil J. Patel (community): Approve
-
Diff: 250 lines (+60/-39)3 files modifiedNuxGraphics/GLSh_ColorPicker.cpp (+3/-1)
NuxGraphics/GLSh_DrawFunction.cpp (+3/-2)
NuxGraphics/RenderingPipeGLSL.cpp (+54/-36)
Changed in nux: | |
status: | New → Confirmed |
Changed in unity: | |
status: | New → Invalid |
Changed in nux (Ubuntu): | |
status: | New → Confirmed |
status: | Confirmed → Invalid |
Changed in nux: | |
importance: | Undecided → Low |
Changed in unity: | |
status: | Invalid → Confirmed |
Changed in nux (Ubuntu): | |
status: | Invalid → Confirmed |
Changed in nux: | |
assignee: | nobody → Jay Taoko (jaytaoko) |
tags: | added: patch |
Changed in nux: | |
assignee: | Jay Taoko (jaytaoko) → Marco Biscaro (marcobiscaro2112) |
status: | Confirmed → In Progress |
Changed in unity: | |
status: | Confirmed → In Progress |
status: | In Progress → Invalid |
Changed in unity: | |
status: | Invalid → In Progress |
Changed in nux: | |
assignee: | Marco Biscaro (marcobiscaro2112) → nobody |
Fedora's handy-dandy guide to GCC 4.6 changes - http:// lists.fedorapro ject.org/ pipermail/ devel/2011- February/ 148523. html - says:
http:// gcc.gnu. org/viewcvs? root=gcc& view=rev& rev=164704 gcc.gnu. org/ml/ gcc-patches/ 2010-09/ msg02144. html
http://
This used to be just a warning, now it is an error (unless -fpermissive). Please don't add -fpermissive, instead just add a variable and pass address of the variable if at all possible.