[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RP] compiler warning: type-punned will break strict anti-aliasing
From: |
Trent Buck |
Subject: |
Re: [RP] compiler warning: type-punned will break strict anti-aliasing |
Date: |
Thu, 3 Feb 2005 14:49:25 +1100 |
Up spake Jonathan Walther:
> Just for my peace of mind, what is causing these two compiler warnings?
>
> events.c:513: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
It'll look like this:
* (type) variable
or this
(type) variable [index]
The former can be fixed trivially, but the latter (unless index is 0),
will need to have the index recalculated.
--
-trent
My car can FLY thanks to the power of LIES!