On Tue, Jan 12, 2010 at 10:37 PM, Craig Schlenter <
[email protected]> wrote:

> That makes the compiler toss an aliasing error immediately:
>
> cc1plus: warnings being treated as errors
> base/rand_util_posix.cc: In function ‘uint64 base::RandUint64()’:
> base/rand_util_posix.cc:32: error: dereferencing pointer ‘instance’
> does break strict-aliasing rules
> base/rand_util_posix.cc:47: note: initialized from here
>
> Beforehand the compiler didn't warn or error at all despite -Wall -Werror
> btw.
> but it did detect the problem when I did -Wstrict-aliasing=2
>

Sadly I don't understand the issue at all, so I can't help you.  But I do
know that in the past gcc has thrown aliasing errors about code that should
be legal.  I hope this is not happening to you in this case.

PK
-- 
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev

Reply via email to