Hi guys,

I have been looking into a problem I've been experience when I was migrating 
twolame from Yoper 3.0 to 3.1. The compiler complained all th time with next 
message: 

cc1: warnings being treated as errors
bitbuffer.c:63: warning: C99 inline functions are not supported; using GNU89
bitbuffer.c:63: warning: to disable this warning use -fgnu89-inline or the 
gnu_inline function attribute
bitbuffer.c:82: warning: C99 inline functions are not supported; using GNU89
bitbuffer.c:109: warning: C99 inline functions are not supported; using GNU89


The solution, and quite likely the best and cleanest one, is to override the 
optflags variable by doing this:

%{expand: %%define optflags %{optflags} -fgnu89-inline}


This will append the -fgnu89-inline switch to the optimization flags defined 
for Yoper. The more important advantage about this approach is that it reduces 
the changes of the standard build to a minimum what will improve 
**maintainability**. 

I hope it to be useful for you sometime...

Best regards! 

PS1: More info about c99 and gcc 4.2. can be found at: 
http://www.gnu.org/software/gcc/gcc-4.2/changes.html
PS2: I think it would be a good idea to have a record of build "tricks" like 
this in the wiki.
_________________________________________________________________
Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar a 
la última
http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMaintenance&Brand=WL&RU=http%3a%2f%2fmail.live.com
_______________________________________________
yoper-dev mailing list
yoper-dev@lists.yoper.com
http://lists.frank-hosting.de/cgi-bin/mailman/listinfo/yoper-dev

Reply via email to