> Date: Wed, 28 Sep 2005 16:13:35 +0200 (CEST) > From: Leonard Orb <[EMAIL PROTECTED]> > Subject: Re: [ivtv-devel] 0.3.9: saa7127 compile error with gcc 2.95 > (woody) > To: [email protected] > Message-ID: <[EMAIL PROTECTED]> > Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed > > On Wed, 28 Sep 2005, Martin Dauskardt wrote: > > > I tried the latest version (saa7127.c is from 28.09.05 00:00) > > > > (0.3.7k compiled without problems) > > > > CC [M] /usr/local/src/ivtv/ivtv/trunk/driver/saa7127.o > > /usr/local/src/ivtv/ivtv/trunk/driver/saa7127.c: In function > > `saa7127_writereg': > > /usr/local/src/ivtv/ivtv/trunk/driver/saa7127.c:265: parse > error before `)' > > /usr/local/src/ivtv/ivtv/trunk/driver/saa7127.c: In function > > `saa7127_set_wss_mode': > > /usr/local/src/ivtv/ivtv/trunk/driver/saa7127.c:370: parse > error before `)' > > ... > > The macros "SAA7127_ERR" and "SAA7127_DEBUG" are defined for a variable > parameter count. > Gcc 2.95 expects at least one of the optional parameters to be there > (i.e. two parameters for both macros), so best practice would be to > add a ", 0" to each "SAA7127_ERR" and "SAA7127_DEBUG" that has only one > parameter. Try 'SAA7127_ERR("I2C Write Problem\n", 0);' > instead of 'SAA7127_ERR("I2C Write Problem\n");' > > Gcc 2.95 will then yield warnings instead of errors.
Thanks a lot Leo, this worked !! _______________________________________________ ivtv-devel mailing list [email protected] http://ivtvdriver.org/mailman/listinfo/ivtv-devel
