Re: [Wireshark-dev] Type-punned pointer... breaks anti-aliasing rules in dfilter-macro.c

2014-01-29 Thread Gilbert Ramirez
I'm encountering the same problem building on an old RedHat 5.0 system, using gcc 4.1.2. Was there any fix committed to add -fno-strict-aliasing for some configurations? (there doesn't appear to be) Gilbert On Tue, Jun 18, 2013 at 6:09 PM, Evan Huus eapa...@gmail.com wrote: Probably the

Re: [Wireshark-dev] Type-punned pointer... breaks anti-aliasing rules in dfilter-macro.c

2014-01-29 Thread Gilbert Ramirez
I have attempted a code fix to remove all the -fstrict-alias warnings uncovered by the old version of gcc I am using. https://code.wireshark.org/review/#/c/40/ Gilbert On Wed, Jan 29, 2014 at 4:37 AM, Gilbert Ramirez g...@alumni.rice.eduwrote: I'm encountering the same problem building on an

[Wireshark-dev] Type-punned pointer... breaks anti-aliasing rules in dfilter-macro.c

2013-06-18 Thread Stephen Fisher
When trying to compile Wireshark (SVN trunk) on FreeBSD for the first time in a long time, I ran across a familiar error:     dfilter-macro.c: In function 'dfilter_macro_init':     dfilter-macro.c:614: warning: dereferencing type-punned pointer will break strict-aliasing rules However, line

Re: [Wireshark-dev] Type-punned pointer... breaks anti-aliasing rules in dfilter-macro.c

2013-06-18 Thread Dirk Jagdmann
What should the fix ultimately be if one way breaks FreeBSD/gcc 4.2.1 compiles and if it introduces C++ compatibility issues (which I'm not familiar with since I haven't been following development for a while lately). maybe ((void*)macros) helps? --

Re: [Wireshark-dev] Type-punned pointer... breaks anti-aliasing rules in dfilter-macro.c

2013-06-18 Thread Evan Huus
Probably the simplest fix is to add -fno-strict-aliasing to the build flags on FreeBSD. On 2013-06-18, at 4:14 PM, Stephen Fisher stephenfisher-wiresh...@outlook.com wrote: When trying to compile Wireshark (SVN trunk) on FreeBSD for the first time in a long time, I ran across a familiar