GNOME Bugzilla – Bug 571700
Compilation warnings with gcc 4.4
Last modified: 2009-02-20 19:08:02 UTC
We're seeing compile warnings with g++ 4.4, coming from refptr.h: /usr/include/glibmm-2.4/glibmm/refptr.h: In constructor ‘WinMain::WinMain(bool)’: /usr/include/glibmm-2.4/glibmm/refptr.h:172: warning: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules /usr/include/glibmm-2.4/glibmm/refptr.h:285: warning: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules /usr/lib/gcc/i386-redhat-linux/4.4.0/../../../../include/c++/4.4.0/bits/stl_list.h:219: note: initialized from here /usr/include/glibmm-2.4/glibmm/refptr.h: In constructor ‘WinMain::WinMain(bool)’: /usr/include/glibmm-2.4/glibmm/refptr.h:172: warning: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules /usr/include/glibmm-2.4/glibmm/refptr.h:285: warning: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules /usr/lib/gcc/i386-redhat-linux/4.4.0/../../../../include/c++/4.4.0/bits/stl_list.h:219: note: initialized from here
Can you show us what code is triggering this? Is there some Fedora (that's what you mean by we, right?) bug URL for this that has more information?
Yes sorry, I should have given some more background info in the first place. This occurs when compiling JD 2.2.0 : https://bugzilla.redhat.com/show_bug.cgi?id=485407
According to the redhat bug report, this was fixed in g++.