> Hans Verkuil wrote:
>
>> I wonder if we're not having some other problem. The oldest compiler I
>> have available to me is 2.96 and this construct compiles without problem
>> there. I couldn't compile the driver itself (it's a chroot environment)
>> so
>> ...
>> Can you try this with the Debian compiler?
I found an old solaris machine with gcc-2.95.1 and I verified this problem.
>
> ~> gcc -v
> Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
> gcc version 2.95.4 20011002 (Debian prerelease)
>
> ~> cc -o -Wall test1.c
> test1.c: In function `test':
> test1.c:11: parse error before `)'
>
> If you want i can make a patch that changes calls like 'M("x")' to
> 'M("x%s", "")' for the two affected defines. This will avoid errors and
> warnings, too.
That will give "warning: too many arguments for format" warnings for newer
compilers. That's not an option.
>
> But there's indeed no such problem with the kernel sources although the
> kernel people have defines of the same style and use it the same way.
Yes, how is that possible? Can you try to compile 2.6.14-rc3, and
especially the tuner*.c sources in drivers/media/video that definitely use
the same construct.
Hans
_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel