Alpha: add some const, kill some warnings
authorMåns Rullgård <mans@mansr.com>
Sun, 18 Jan 2009 05:52:08 +0000 (05:52 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 18 Jan 2009 05:52:08 +0000 (05:52 +0000)
Originally committed as revision 16665 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/alpha/asm.h

index 1877704..04d4f89 100644 (file)
@@ -62,12 +62,12 @@ static inline uint64_t WORD_VEC(uint64_t x)
 
 #ifdef __GNUC__
 #define ldq(p)                                                  \
-    (((union {                                                  \
+    (((const union {                                            \
         uint64_t __l;                                           \
         __typeof__(*(p)) __s[sizeof (uint64_t) / sizeof *(p)];  \
     } *) (p))->__l)
 #define ldl(p)                                                  \
-    (((union {                                                  \
+    (((const union {                                            \
         int32_t __l;                                            \
         __typeof__(*(p)) __s[sizeof (int32_t) / sizeof *(p)];   \
     } *) (p))->__l)