[FFmpeg-devel] swscale doesn't compile with gcc 4.2.0

Ismail Dönmez ismail
Tue Jun 12 22:15:01 CEST 2007


Hi all,

I am getting following with FFmpeg SVN:

make[1]: Entering directory `/packages/ffmpeg/libswscale'
gcc  -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/packages/ffmpeg" -I"/packages/ffmpeg" -I"/packages/ffmpeg"/libavutil 
-fomit-frame-pointer -march=i686 -pthread -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -O3  -c -o 
swscale.o swscale.c
swscale.c: In function 'yuv2packedXinC':
swscale.c:665: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '*' token
swscale.c:665: error: 'r' undeclared (first use in this function)
swscale.c:665: error: (Each undeclared identifier is reported only once
swscale.c:665: error: for each function it appears in.)
swscale.c:665: error: 'b' undeclared (first use in this function)
swscale.c:665: warning: left-hand operand of comma expression has no effect
swscale.c:665: error: 'g' undeclared (first use in this function)
swscale.c:665: warning: left-hand operand of comma expression has no effect
swscale.c:665: warning: ISO C90 forbids mixed declarations and code
swscale.c:671: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '*' token
swscale.c:671: warning: left-hand operand of comma expression has no effect
swscale.c:671: warning: left-hand operand of comma expression has no effect
swscale.c:671: warning: ISO C90 forbids mixed declarations and code
swscale.c:682: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '*' token
swscale.c:682: warning: left-hand operand of comma expression has no effect
swscale.c:682: warning: left-hand operand of comma expression has no effect
swscale.c:682: warning: ISO C90 forbids mixed declarations and code
swscale.c:701: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '*' token
swscale.c:701: warning: left-hand operand of comma expression has no effect
swscale.c:701: warning: left-hand operand of comma expression has no effect
swscale.c:701: warning: ISO C90 forbids mixed declarations and code
swscale.c:716: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '*' token
swscale.c:716: warning: left-hand operand of comma expression has no effect
swscale.c:716: warning: left-hand operand of comma expression has no effect
swscale.c:716: warning: ISO C90 forbids mixed declarations and code
swscale.c:727: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '*' token
swscale.c:727: warning: left-hand operand of comma expression has no effect
swscale.c:727: warning: left-hand operand of comma expression has no effect
swscale.c:727: warning: ISO C90 forbids mixed declarations and code
swscale.c:738: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '*' token
swscale.c:738: warning: left-hand operand of comma expression has no effect
swscale.c:738: warning: left-hand operand of comma expression has no effect
swscale.c:738: warning: ISO C90 forbids mixed declarations and code
swscale.c:749: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '*' token
swscale.c:749: warning: left-hand operand of comma expression has no effect
swscale.c:749: warning: left-hand operand of comma expression has no effect
swscale.c:749: warning: ISO C90 forbids mixed declarations and code
swscale.c:789: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '*' token
swscale.c:789: warning: left-hand operand of comma expression has no effect
swscale.c:789: warning: left-hand operand of comma expression has no effect
swscale.c:789: warning: ISO C90 forbids mixed declarations and code
swscale.c:797: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '*' token
swscale.c:797: warning: left-hand operand of comma expression has no effect
swscale.c:797: warning: left-hand operand of comma expression has no effect
swscale.c:797: warning: ISO C90 forbids mixed declarations and code
In file included from swscale.c:876:
swscale_template.c: In function 'hyscale_MMX':
swscale_template.c:2541: warning: passing argument 4 of 'palToY_MMX' from 
incompatible pointer type
swscale_template.c: In function 'hcscale_MMX':
swscale_template.c:2757: warning: passing argument 6 of 'palToUV_MMX' from 
incompatible pointer type
swscale_template.c: In function 'swScale_MMX':
swscale_template.c:3157: warning: cast from pointer to integer of different 
size
swscale_template.c:3165: warning: cast from pointer to integer of different 
size
swscale.c: In function 'gray16swap':
swscale.c:1795: warning: initialization from incompatible pointer type
swscale.c:1796: warning: initialization from incompatible pointer type
swscale.c: In function 'sws_scale':
swscale.c:2468: warning: assignment from incompatible pointer type


Since we are talking about gcc 2.95.3 compatibility, it would be nice to have 
current compiler compatibility too ;)

Regards,
ismail

-- 
Perfect is the enemy of good
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070612/5eabd8cf/attachment.pgp>



More information about the ffmpeg-devel mailing list