[FFmpeg-devel] [PATCH] avutil: simplify LOCAL_ALIGNED macros

Michael Niedermayer michael at niedermayer.cc
Wed Jul 20 12:19:21 EEST 2016


On Tue, Jul 19, 2016 at 10:48:16PM -0300, James Almer wrote:
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
>  configure            | 10 ++++------
>  libavutil/internal.h | 22 ++++++----------------
>  2 files changed, 10 insertions(+), 22 deletions(-)

fails to build here

CC      libavcodec/dvenc.o
In file included from libavcodec/dvenc.c:30:0:
./libavutil/internal.h:116:61: warning: __VA_ARGS__ can only appear in the expansion of a C99 variadic macro [enabled by default]
libavcodec/dvenc.c: In function ‘dv_encode_video_segment’:
libavcodec/dvenc.c:426:5: error: ‘t’ undeclared (first use in this function)
libavcodec/dvenc.c:426:5: note: each undeclared identifier is reported only once for each function it appears in
libavcodec/dvenc.c:426:5: error: ‘v’ undeclared (first use in this function)
libavcodec/dvenc.c:426:5: warning: left-hand operand of comma expression has no effect [-Wunused-value]
libavcodec/dvenc.c:426:5: error: expected expression before ‘...’ token
libavcodec/dvenc.c:426:5: warning: left-hand operand of comma expression has no effect [-Wunused-value]
libavcodec/dvenc.c:426:5: error: expected ‘;’ before ‘t’
libavcodec/dvenc.c:426:5: error: implicit declaration of function ‘t’ [-Werror=implicit-function-declaration]
libavcodec/dvenc.c:426:5: error: implicit declaration of function ‘la_v’ [-Werror=implicit-function-declaration]
libavcodec/dvenc.c:426:21: error: expected expression before ‘uint8_t’
libavcodec/dvenc.c:427:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
libavcodec/dvenc.c:476:30: error: ‘scratch’ undeclared (first use in this function)
cc1: some warnings being treated as errors
make: *** [libavcodec/dvenc.o] Error 1
CC      libavcodec/mpegvideo_motion.o
In file included from ./libavutil/common.h:467:0,
                 from ./libavutil/avutil.h:288,
                 from ./libavutil/avassert.h:31,
                 from libavcodec/mpegvideo_motion.c:26:
./libavutil/internal.h:116:61: warning: __VA_ARGS__ can only appear in the expansion of a C99 variadic macro [enabled by default]
libavcodec/mpegvideo_motion.c: In function ‘apply_obmc’:
libavcodec/mpegvideo_motion.c:669:5: error: ‘t’ undeclared (first use in this function)
libavcodec/mpegvideo_motion.c:669:5: note: each undeclared identifier is reported only once for each function it appears in
libavcodec/mpegvideo_motion.c:669:5: error: ‘v’ undeclared (first use in this function)
libavcodec/mpegvideo_motion.c:669:5: warning: left-hand operand of comma expression has no effect [-Wunused-value]
libavcodec/mpegvideo_motion.c:669:5: error: expected expression before ‘...’ token
libavcodec/mpegvideo_motion.c:669:5: warning: left-hand operand of comma expression has no effect [-Wunused-value]
libavcodec/mpegvideo_motion.c:669:5: error: expected ‘;’ before ‘t’
libavcodec/mpegvideo_motion.c:669:5: error: implicit declaration of function ‘t’ [-Werror=implicit-function-declaration]
libavcodec/mpegvideo_motion.c:669:5: error: implicit declaration of function ‘la_v’ [-Werror=implicit-function-declaration]
libavcodec/mpegvideo_motion.c:669:21: error: expected expression before ‘int16_t’
libavcodec/mpegvideo_motion.c:670:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
libavcodec/mpegvideo_motion.c:680:5: error: ‘mv_cache’ undeclared (first use in this function)
cc1: some warnings being treated as errors
make: *** [libavcodec/mpegvideo_motion.o] Error 1
CC      libavcodec/x86/simple_idct.o
In file included from ./libavutil/common.h:467:0,
                 from ./libavutil/avutil.h:288,
                 from ./libavutil/mem.h:34,
                 from libavcodec/x86/simple_idct.c:23:
./libavutil/internal.h:116:61: warning: __VA_ARGS__ can only appear in the expansion of a C99 variadic macro [enabled by default]
libavcodec/x86/simple_idct.c: In function ‘idct’:
libavcodec/x86/simple_idct.c:88:9: error: ‘t’ undeclared (first use in this function)
libavcodec/x86/simple_idct.c:88:9: note: each undeclared identifier is reported only once for each function it appears in
libavcodec/x86/simple_idct.c:88:9: error: ‘v’ undeclared (first use in this function)
libavcodec/x86/simple_idct.c:88:9: warning: left-hand operand of comma expression has no effect [-Wunused-value]
libavcodec/x86/simple_idct.c:88:9: error: expected expression before ‘...’ token
libavcodec/x86/simple_idct.c:88:9: warning: left-hand operand of comma expression has no effect [-Wunused-value]
libavcodec/x86/simple_idct.c:88:9: error: expected ‘;’ before ‘t’
libavcodec/x86/simple_idct.c:88:9: error: implicit declaration of function ‘t’ [-Werror=implicit-function-declaration]
libavcodec/x86/simple_idct.c:88:9: error: implicit declaration of function ‘la_v’ [-Werror=implicit-function-declaration]
libavcodec/x86/simple_idct.c:88:25: error: expected expression before ‘int64_t’
libavcodec/x86/simple_idct.c:89:41: error: ‘align_tmp’ undeclared (first use in this function)
libavcodec/x86/simple_idct.c:89:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
cc1: some warnings being treated as errors
make: *** [libavcodec/x86/simple_idct.o] Error 1
make: Target `all' not remade because of errors.


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The worst form of inequality is to try to make unequal things equal.
-- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160720/d2991314/attachment.sig>


More information about the ffmpeg-devel mailing list