[uWSGI] Warning in compiling uwsgi-0.9.5.3 with '-O2'

Roberto De Ioris roberto at unbit.it
Mon Jul 5 13:29:16 CEST 2010


Il giorno 30/giu/2010, alle ore 19.44, Leo Borisenko ha scritto:

> Hello.
> 
> Recent version of uwsgi introduces '-Werror' in CFLAGS. In combination with additional '-O2' flag it breaks building with warning 'dereferencing type-punned pointer will break strict-aliasing rules' in protocol.c. Building log is attached.
> 
> 

Hi, remember that not necessarily the - O2 flag will gain performance. Most used functions are already marked as inlined in the source.

I will check on this, but i prefer code optimization instead of compiler optimization.

--
Roberto De Ioris
http://unbit.it
JID: roberto at jabber.unbit.it



More information about the uWSGI mailing list