Browse code

Alpha: add some const, kill some warnings

Originally committed as revision 16665 to svn://svn.ffmpeg.org/ffmpeg/trunk

Måns Rullgård authored on 2009/01/18 14:52:08
Showing 1 changed files
... ...
@@ -62,12 +62,12 @@ static inline uint64_t WORD_VEC(uint64_t x)
62 62
 
63 63
 #ifdef __GNUC__
64 64
 #define ldq(p)                                                  \
65
-    (((union {                                                  \
65
+    (((const union {                                            \
66 66
         uint64_t __l;                                           \
67 67
         __typeof__(*(p)) __s[sizeof (uint64_t) / sizeof *(p)];  \
68 68
     } *) (p))->__l)
69 69
 #define ldl(p)                                                  \
70
-    (((union {                                                  \
70
+    (((const union {                                            \
71 71
         int32_t __l;                                            \
72 72
         __typeof__(*(p)) __s[sizeof (int32_t) / sizeof *(p)];   \
73 73
     } *) (p))->__l)