]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Alpha: add some const, kill some warnings
authormru <mru@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 18 Jan 2009 05:52:08 +0000 (05:52 +0000)
committermru <mru@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 18 Jan 2009 05:52:08 +0000 (05:52 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16665 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/alpha/asm.h

index 1877704e7bd6bbd2fc0400da553065b509022668..04d4f89a5af8cacbbbad87027394c4324638f9b1 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)