[SR-Users] compilation warnings
caio
elcaio at gmail.com
Fri Oct 5 19:35:50 CEST 2012
On Tue, Sep 25, 2012 at 3:03 AM, Vieri <rentorbuy at yahoo.com> wrote:
>
> --- On Mon, 9/24/12, Marius Zbihlei <marius.zbihlei at 1and1.ro> wrote:
>
> > Can you provide more information about what compiler (name,
> > version) are
> > you using?
>
> Sure.
>
> Relevant data:
>
> System uname:
> Linux-3.0.4-hardened-r5-i686-Intel-R-_Pentium-R-_4_CPU_1.80GHz-with-gentoo-2.0.3
> app-shells/bash: 4.1_p9
> dev-java/java-config: 2.1.11-r3
> dev-lang/python: 2.7.2-r3, 3.1.4-r3
> dev-util/cmake: 2.8.6-r4
> dev-util/pkgconfig: 0.26
> sys-apps/baselayout: 2.0.3
> sys-apps/openrc: 0.9.4
> sys-apps/sandbox: 2.5
> sys-devel/autoconf: 2.68
> sys-devel/automake: 1.11.1
> sys-devel/binutils: 2.21.1-r1
> sys-devel/gcc: 4.5.3-r1
> sys-devel/gcc-config: 1.4.1-r1
> sys-devel/libtool: 2.4-r1
> sys-devel/make: 3.82-r1
> sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
> sys-libs/glibc: 2.12.2
> CBUILD="i686-pc-linux-gnu"
> CFLAGS="-O2 -march=i686 -pipe"
> CHOST="i686-pc-linux-gnu"
> CXXFLAGS="-O2 -march=i686 -pipe"
> FCFLAGS="-march=i686 -O2 -pipe"
> FFLAGS="-march=i686 -O2 -pipe"
> LDFLAGS="-Wl,-O1 -Wl,--as-needed"
>
> Vieri
>
Same warning here with gcc v4.4.7 in Gentoo too.
python_msgobj.c:529: warning: dereferencing type-punned pointer will break
strict-aliasing rules
python_msgobj.c:529: warning: dereferencing pointer 'MSGtype.395' does
break strict-aliasing rules
Commit 1abde923ee3cbdcce69b72d223fb0c487b892b6e by Daniel seem to not fix
the warning.
I know QA Gentoo complains about it, may exhibit random runtime failures.
We can live with it :) just a compiler warning. It compiles fine. (it's a
matter of disabling strict_aliasing in Makefile (-O2 implies
-fstrict-aliasing)).
Claudio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20121005/051fdd17/attachment.htm>
More information about the sr-users
mailing list