Re: [eigen] gcc 4.2.4 warning on type-punned pointers |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] gcc 4.2.4 warning on type-punned pointers
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Fri, 13 Aug 2010 00:23:56 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=fsbj8pbsXw3TKp6u7GhVwxWCXhRg/MiQhsqGL3Sxu0M=; b=IOrWnhKZmdpkA9S/N4Yq+TBmIbJ5EACtE+kEZVzIJV2g6wz65paITUaBZoOu0Rezw3 hyAyvKV8Gui4tON55HfqVe2o2kv1VEGxPoZC9j/QlzfFZEg+dcmaKpI8+adHOb0+8zZt JzobuMnmwlI6MBEZpH5setE7aLibAmTpnIZlE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=bDamX1ZEQV6Ncd83seKj+5Q/M4IEzDC1sWIDgEfrLI5i+lwOmC3MtOBaL1kVwh4c/K k/0x17PMx1tQLlgLnYh54U6fNB8VyPI/xHwzzBIU0Kg+C1SSqF3a2H0AcHbmLFzVzPKq cLkvCZ/ht60UHESb8xvHkF/sC8q3ZxQ00/C3M=
2010/8/12 Manoj Rajagopalan <rmanoj@xxxxxxxxx>:
> Hi,
>
> I'm seeing this warning
what warning? please paste it all here. i can't reproduce with gcc 4.4
and usually gcc only gets more pedantic with time.
Benoit
> from Complex.h, line 311 where a real[2] is cast as
> complex* in C-style. I am tempted to submit a correction with static_cast or
> reinterpret_cast instead but I'd first like to ask if this is likely to cause
> issues related to alignment or otherwise.
>
> thanks,
> Manoj
>
>
>