On Wed, Mar 4, 2009 at 4:25 AM, Thomas Keller <[email protected]> wrote: > > Hi all! > > I get quite a lot of these when compiling monotone under gcc 4.2.1 (oS > 10.3): > > warning: dereferencing type-punned pointer will break strict-aliasing rules > > This seems to happen somewhere inside the command macro machinery (i.e. > in constructors like ‘commands::cmd_cert::cmd_cert()’) - should I ignore > these, compile with -fno-strict-aliasing or try to look for a fix?
These are a harmless false positive (it's a subclass-to-base conversion but gcc <4.3 doesn't know that when the warning issues, because it's only got a forward declaration of the subclass). However, the command macro machinery is a mess; if you want to clean it up, please do. zw _______________________________________________ Monotone-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/monotone-devel
