>> Gcc 2.95 will compile kernels up to 2.6.12.6 and probably also newer
>> ones
>> without problems, because no one there does "#define M(format, args...)"
>> and then uses "M(str)" without "args".
>
> I compiled Kernel 2.6.13.2 and some extern drivers without any problems!
> Only ivtv failed to compile.

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
I just tried this:

#include <stdio.h>

#define WM8775_DEBUG(fmt, arg...) \
        do { \
                        printf("%s debug %d-%04x: " fmt, "hello", \
                               1, 2, ## arg); \
        } while (0)

void test(void)
{
    WM8775_DEBUG("test\n");
}

(I hope this isn't reformatted)

Can you try this with the Debian compiler?

       Hans


_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to