[Xfce4-commits] CVS: xfce4/xffm/libs recent.c,1.16,1.17

edscott edscott at prodigy.net.mx
Wed Aug 25 17:40:15 CEST 2004


El mar, 24-08-2004 a las 08:10, Benedikt Meurer escribió:
> Edscott Wilson Garcia wrote:
> > Update of /var/cvs/xfce/xfce4/xffm/libs
> > In directory dbguin.lunar-linux.org:/tmp/cvs-serv4937
> > 
> > Modified Files:
> > 	recent.c 
> > Log Message:
> > remove C99 code (is there a way to tell gcc not to accept C99?) 
> 
> cc -std=c89
> cc -ansi
> cc -std=iso9899:1990

Thanks Benny, although c99 code still get through. Nonetheless, I can
catch those c99 declaration-after-statement errors if I use
export=CFLAGS="-Wall -pedantic-errors" before autogen.sh. 

But the headers from libxfce4util make compilation fail (I can remove
extra commas and semicolons and commit if OK with you, but I don't know
what the c99 "anonymous variadic macros" are all about): 


In file included from /usr/include/xfce4/libxfce4util/libxfce4util.h:31,
                 from /usr/include/xfce4/xfce4-modules/constants.h:10,
                 from ../libs/constants.h:29,
                 from properties.c:47:
/usr/include/xfce4/libxfce4util/libxfce4util-config.h:37: error: ISO C
does not allow extra `;' outside of a function
/usr/include/xfce4/libxfce4util/libxfce4util-config.h:51: error: ISO C
does not allow extra `;' outside of a function
In file included from /usr/include/xfce4/libxfce4util/libxfce4util.h:33,
                 from /usr/include/xfce4/xfce4-modules/constants.h:10,
                 from ../libs/constants.h:29,
                 from properties.c:47:
/usr/include/xfce4/libxfce4util/debug.h:94:13: anonymous variadic macros
were introduced in C99
/usr/include/xfce4/libxfce4util/debug.h:95:15: anonymous variadic macros
were introduced in C99
In file included from /usr/include/xfce4/libxfce4util/libxfce4util.h:38,
                 from /usr/include/xfce4/xfce4-modules/constants.h:10,
                 from ../libs/constants.h:29,
                 from properties.c:47:
/usr/include/xfce4/libxfce4util/xfce-generics.h:33: error: ISO C does
not allow extra `;' outside of a function
/usr/include/xfce4/libxfce4util/xfce-generics.h:98: error: ISO C does
not allow extra `;' outside of a function
In file included from /usr/include/xfce4/libxfce4util/libxfce4util.h:39,
                 from /usr/include/xfce4/xfce4-modules/constants.h:10,
                 from ../libs/constants.h:29,
                 from properties.c:47:
/usr/include/xfce4/libxfce4util/xfce-kiosk.h:33: error: ISO C does not
allow extra `;' outside of a function
/usr/include/xfce4/libxfce4util/xfce-kiosk.h:45: error: ISO C does not
allow extra `;' outside of a function
In file included from /usr/include/xfce4/libxfce4util/libxfce4util.h:40,
                 from /usr/include/xfce4/xfce4-modules/constants.h:10,
                 from ../libs/constants.h:29,
                 from properties.c:47:
/usr/include/xfce4/libxfce4util/xfce-miscutils.h:67:27: anonymous
variadic macros were introduced in C99
/usr/include/xfce4/libxfce4util/xfce-miscutils.h:70:27: anonymous
variadic macros were introduced in C99
In file included from /usr/include/xfce4/libxfce4util/xfce-rc.h:31,
                 from /usr/include/xfce4/libxfce4util/libxfce4util.h:41,
                 from /usr/include/xfce4/xfce4-modules/constants.h:10,
                 from ../libs/constants.h:29,
                 from properties.c:47:


regards,

Edscott





More information about the Xfce4-dev mailing list