View previous topic :: View next topic |
Author |
Message |
tonypowell n00b
Joined: 20 Aug 2011 Posts: 1
|
Posted: Sat Aug 20, 2011 9:09 pm Post subject: Failed to compile the "modules" |
|
|
When trying to compile with "genkernel all", I get this warning before telling me it failed
Code: | cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable-" |
|
|
Back to top |
|
|
dwbowyer Apprentice
Joined: 18 Apr 2008 Posts: 155
|
Posted: Sun Aug 21, 2011 12:17 am Post subject: |
|
|
Not sure where or when I read about it, since it didn't matter much to me, but I think it was phoronix.com.
I'm about 95% sure I remember this correctly. As you no doubt know, it's a hard term to run a search in forums , for me to verify.
The option "-Wno-unused-but-set-variable-" is supported by >=gcc-4.6.0 and supposedly ignored by <=gcc.4.5.x.
This offers the best description I could find in 10 minutes of google search.
http://lists.fedoraproject.org/pipermail/devel/2011-February/148523.html
Long and short of it -- packages with this problem need to define the unused variables as unused, cast to void, or as a damn dirty hack
set -Wpermissive.
Your solution (one time only), I think, might be to add -Wunused-but-set-variable or -Wpermissive to CFLAGS for that one package to build.
Don't set that permanently though. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|