[Ffmpeg-cvslog] r8608 - in trunk: Changelog doc/ffmpeg-doc.texi libavcodec/Makefile libavcodec/allcodecs.c libavcodec/avcodec.h libavcodec/tiff.c libavcodec/tiff.h libavcodec/tiffenc.c

Michel Bardiaux mbardiaux
Wed Apr 4 16:14:42 CEST 2007


Baptiste Coudurier wrote:
> Hi
> 
> michael wrote:
>> [...]
>>
>> +    add_entry(s, TIFF_WIDTH,             TIFF_LONG,     1,      (uint32_t[]) {s->width});

This is a recent gccism; plain simple &s->width works just as well.

>> +    add_entry(s, TIFF_HEIGHT,            TIFF_LONG,     1,      (uint32_t[]) {s->height});
>> +
>> [...]
>> +
>> +    add_entry(s, TIFF_COMPR,             TIFF_SHORT,    1,      (uint16_t[]) {s->compr});
>> +    add_entry(s, TIFF_INVERT,            TIFF_SHORT,    1,      (uint16_t[]) {s->invert});
>> [...]
>> +    add_entry(s, TIFF_SAMPLES_PER_PIXEL, TIFF_SHORT,    1,      (uint16_t[]) {s->bpp_tab_size});
>> +
>> +    add_entry(s, TIFF_ROWSPERSTRIP,      TIFF_LONG,     1,      (uint32_t[]) {s->rps});
> 
> gcc-2.95 complains here:
> 
> gcc-2.95 -v
> Reading specs from /usr/lib/gcc-lib/i486-linux-gnu/2.95.4/specs
> gcc version 2.95.4 20011002 (Debian prerelease)
> 
> gcc-2.95 -I"/usr/local/src/ffmpeg/svn"/libswscale   -DHAVE_AV_CONFIG_H
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
> -I"/usr/local/src/ffmpeg/svn" -I"/usr/local/src/ffmpeg/svn"
> -I"/usr/local/src/ffmpeg/svn"/libavutil -fomit-frame-pointer -pthread -g
> -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization
> -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -O3  -c -o tiffenc.o
> tiffenc.c
> cc1: Invalid option `-Wdeclaration-after-statement'

This is weird (but unrelated). I have that only when I configure on a 
debian sarge then later switch (using NFS of course) to a machine with 
debian woody. It does NOT happen if I do a make distclean and configure 
there.

> cc1: Invalid option `-Wdisabled-optimization'
> cc1: Invalid option `-Wno-pointer-sign'
> In file included from /usr/include/sys/types.h:270,
>                  from /usr/include/stdlib.h:438,
>                  from /usr/local/src/ffmpeg/svn/libavutil/common.h:35,
>                  from /usr/local/src/ffmpeg/svn/libavutil/avutil.h:44,
>                  from avcodec.h:34,
>                  from tiffenc.c:28:
> /usr/include/bits/pthreadtypes.h:69: warning: unnamed struct/union that
> defines no instances
> tiffenc.c: In function `encode_frame':
> tiffenc.c:301: invalid use of non-lvalue array
Comments above
> tiffenc.c:302: invalid use of non-lvalue array
> tiffenc.c:307: invalid use of non-lvalue array
> tiffenc.c:308: invalid use of non-lvalue array
> tiffenc.c:312: invalid use of non-lvalue array
> tiffenc.c:314: invalid use of non-lvalue array
> 
> [...]
> 


-- 
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux at mediaxim.be

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/




More information about the ffmpeg-cvslog mailing list