[Devel] compiler warnings with gcc 4.1.2

Dan Pascu dan at ag-projects.com
Wed Oct 18 21:04:11 CEST 2006

On Wednesday 18 October 2006 20:29, Juha Heinanen wrote:
> i upgraded debian on one of my boxes to testing (etch) that came with
> gcc 4.1.2.  as result, i started to get a bunch of warnings listed
> below when building CVS head openser.
> could maintainers of those core/module files please fix them.

Unfortunately, most of the time fixing the strict-aliasing warnings will 
result in some nasty contorted code.
Maybe a simpler fix would be to add -fno-strict-aliasing to CFLAGS if the 
compiler is gcc.

> -- juha
> Compiling usr_avp.c
> usr_avp.c: In function 'add_avp':
> usr_avp.c:136: warning: dereferencing type-punned pointer will break
> strict-aliasing rules 


More information about the Devel mailing list