diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-12-21 14:26:48 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-12-21 14:26:48 +0400 |
commit | 12117a81878d2e6909b3f9e13eccdd31cedf8be9 (patch) | |
tree | 3af946c2c11358b95e51340fa8a77f4d6809f29a /intern/cycles/util | |
parent | eb219852a839f23bfeb9dd5c24bb4bb90ef0c367 (diff) |
Fix cycles aliasing warnings caused by motion blur transforms.
Diffstat (limited to 'intern/cycles/util')
-rw-r--r-- | intern/cycles/util/util_transform.h | 2 | ||||
-rw-r--r-- | intern/cycles/util/util_types.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/intern/cycles/util/util_transform.h b/intern/cycles/util/util_transform.h index a1c12ddf0e1..1f19f85f894 100644 --- a/intern/cycles/util/util_transform.h +++ b/intern/cycles/util/util_transform.h @@ -45,7 +45,7 @@ typedef struct Transform { * * For the DecompMotionTransform we drop scale from pre/post. */ -typedef struct MotionTransform { +typedef struct __may_alias MotionTransform { Transform pre; Transform mid; Transform post; diff --git a/intern/cycles/util/util_types.h b/intern/cycles/util/util_types.h index 3d246104ddc..00b6cf5c56e 100644 --- a/intern/cycles/util/util_types.h +++ b/intern/cycles/util/util_types.h @@ -39,12 +39,14 @@ #if defined(_WIN32) && !defined(FREE_WINDOWS) #define __device_inline static __forceinline #define __align(...) __declspec(align(__VA_ARGS__)) +#define __may_alias #else #define __device_inline static inline __attribute__((always_inline)) #ifndef FREE_WINDOWS64 #define __forceinline inline __attribute__((always_inline)) #endif #define __align(...) __attribute__((aligned(__VA_ARGS__))) +#define __may_alias __attribute__((__may_alias__)) #endif #endif |