[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: PCB compilation issue
> Hi folks. This construct in the current PCB code in CVS:
>
> afterburner$ grep RCSID src/*.h
> src/global.h:#define RCSID(x) static char *rcsid ATTRIBUTE_UNUSED = x
> afterburner$
>
> ...is causing the SunPro C compiler to vomit. Is "ATTRIBUTE_UNUSED"
> a GCCism or something? Any chance that can be rolled back to sanity,
> or perhaps conditionalized on GCC?
You need approximately this (line numbers will be off, I've got other
pending changes in that file):
Index: global.h
===================================================================
RCS file: /cvsroot/pcb/pcb/src/global.h,v
retrieving revision 1.23
diff -p -2 -r1.23 global.h
*** global.h 24 Sep 2004 02:55:26 -0000 1.23
--- global.h 12 Oct 2004 13:06:54 -0000
*************** typedef struct
*** 681,684 ****
--- 689,694 ----
#if GCC_VERSION > 2007
#define ATTRIBUTE_UNUSED __attribute__((unused))
+ #else
+ #define ATTRIBUTE_UNUSED
#endif