gcc error: variable 'c' set but not used

Development on core packages and the distribution goes on in here.

gcc error: variable 'c' set but not used

Postby pepedog » Mon Jan 09, 2012 1:00 pm

Getting this when compiling on armv7 trimslice
$this->bbcode_second_pass_quote('', 'e')rror: variable 'c' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

Not on armv5, thought it was perhaps using distcc crosstools, but it is still ok local cc
I think this might be common, but not limited to, compiling older kernels?

I could (example) compile raspberry pi kernel (not package) on a trimslice, can the reverse be done? Got a CuBox coming soon
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: gcc error: variable 'c' set but not used

Postby kmihelich » Mon Jan 09, 2012 8:40 pm

That's just a warning, and not anything critical. Remove -Werror where it's defined and you should be alright. That flag treats warnings as errors, as it says.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: gcc error: variable 'c' set but not used

Postby pepedog » Mon Jan 09, 2012 9:57 pm

Are you talking about removing define from source?
Same source but fails on v7 but ok on v5
Yet other warns skip ok, just this one borks
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: gcc error: variable 'c' set but not used

Postby kmihelich » Mon Jan 09, 2012 10:06 pm

Yeah.. just pull it from the makefile.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm


Return to Arch Linux ARM

Who is online

Users browsing this forum: No registered users and 5 guests