[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] gcc warnings
From: |
Zack Weinberg |
Subject: |
Re: [Monotone-devel] gcc warnings |
Date: |
Wed, 4 Mar 2009 08:43:07 -0800 |
On Wed, Mar 4, 2009 at 4:25 AM, Thomas Keller <address@hidden> 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] gcc warnings, Thomas Keller, 2009/03/04
- Re: [Monotone-devel] gcc warnings,
Zack Weinberg <=
- Re: [Monotone-devel] gcc warnings, Thomas Moschny, 2009/03/04
- Re: [Monotone-devel] gcc warnings, Zack Weinberg, 2009/03/04
- Re: [Monotone-devel] gcc warnings, Zack Weinberg, 2009/03/04
- Re: [Monotone-devel] gcc warnings, Thomas Moschny, 2009/03/04
- Re: [Monotone-devel] gcc warnings, Zack Weinberg, 2009/03/04
- Re: [Monotone-devel] gcc warnings, Thomas Moschny, 2009/03/04
- Re: [Monotone-devel] gcc warnings, Zack Weinberg, 2009/03/04