Browse code

pixblockdsp: Have function pointer prototype match implementation

libavcodec/pixblockdsp.c(58) : warning C4028: formal parameter 1 different from declaration
libavcodec/pixblockdsp.c(63) : warning C4028: formal parameter 1 different from declaration
libavcodec/pixblockdsp.c(66) : warning C4028: formal parameter 1 different from declaration

Diego Biurrun authored on 2016/11/01 07:12:20
Showing 1 changed files
... ...
@@ -21,13 +21,15 @@
21 21
 
22 22
 #include <stdint.h>
23 23
 
24
+#include "config.h"
25
+
24 26
 #include "avcodec.h"
25 27
 
26 28
 typedef struct PixblockDSPContext {
27
-    void (*get_pixels)(int16_t *block /* align 16 */,
29
+    void (*get_pixels)(int16_t *restrict block /* align 16 */,
28 30
                        const uint8_t *pixels /* align 8 */,
29 31
                        ptrdiff_t stride);
30
-    void (*diff_pixels)(int16_t *block /* align 16 */,
32
+    void (*diff_pixels)(int16_t *restrict block /* align 16 */,
31 33
                         const uint8_t *s1 /* align 8 */,
32 34
                         const uint8_t *s2 /* align 8 */,
33 35
                         ptrdiff_t stride);