# HG changeset patch # User David A. Holland # Date 1370967347 14400 # Node ID 33954a07d0135ff9daeb7780ebc3ed2d025ecbf1 # Parent ecec7c16e3ba11f50deb4154dd0226eaf97162b3 __unused -> UNUSED diff -r ecec7c16e3ba -r 33954a07d013 CHANGES --- a/CHANGES Tue Jun 11 11:35:27 2013 -0400 +++ b/CHANGES Tue Jun 11 12:15:47 2013 -0400 @@ -5,6 +5,8 @@ - don't use getprogname() in the name of portability - add tests arising from December 2010 tech-toolchain thread (one from der Mouse, one of mine) + - clean out usage of sys/cdefs.h macros and don't use the implementation + namespace release 0.1 (20130610) - first release, works with at least some imake templates diff -r ecec7c16e3ba -r 33954a07d013 eval.c --- a/eval.c Tue Jun 11 11:35:27 2013 -0400 +++ b/eval.c Tue Jun 11 12:15:47 2013 -0400 @@ -132,7 +132,7 @@ enum tokens tok; int val; }; -DECLARRAY(token, static __unused); +DECLARRAY(token, static UNUSED); DEFARRAY(token, static); static struct tokenarray tokens; diff -r ecec7c16e3ba -r 33954a07d013 files.c --- a/files.c Tue Jun 11 11:35:27 2013 -0400 +++ b/files.c Tue Jun 11 12:15:47 2013 -0400 @@ -46,7 +46,7 @@ bool issystem; }; -DECLARRAY(incdir, static __unused); +DECLARRAY(incdir, static UNUSED); DEFARRAY(incdir, static); static struct incdirarray quotepath, bracketpath; diff -r ecec7c16e3ba -r 33954a07d013 macro.c --- a/macro.c Tue Jun 11 11:35:27 2013 -0400 +++ b/macro.c Tue Jun 11 12:15:47 2013 -0400 @@ -44,7 +44,7 @@ unsigned param; }; }; -DECLARRAY(expansionitem, static __unused); +DECLARRAY(expansionitem, static UNUSED); DEFARRAY(expansionitem, static); struct macro { @@ -57,9 +57,9 @@ struct expansionitemarray expansion; bool inuse; }; -DECLARRAY(macro, static __unused); +DECLARRAY(macro, static UNUSED); DEFARRAY(macro, static); -DECLARRAY(macroarray, static __unused); +DECLARRAY(macroarray, static UNUSED); DEFARRAY(macroarray, static); static struct macroarrayarray macros; diff -r ecec7c16e3ba -r 33954a07d013 place.c --- a/place.c Tue Jun 11 11:35:27 2013 -0400 +++ b/place.c Tue Jun 11 12:15:47 2013 -0400 @@ -42,7 +42,7 @@ int depth; bool fromsystemdir; }; -DECLARRAY(placefile, static __unused); +DECLARRAY(placefile, static UNUSED); DEFARRAY(placefile, static); static struct placefilearray placefiles; diff -r ecec7c16e3ba -r 33954a07d013 utils.h --- a/utils.h Tue Jun 11 11:35:27 2013 -0400 +++ b/utils.h Tue Jun 11 12:15:47 2013 -0400 @@ -35,9 +35,11 @@ #if defined(__CLANG__) || defined(__GNUC__) #define PF(a, b) __attribute__((__format__(__printf__, a, b))) #define DEAD __attribute__((__noreturn__)) +#define UNUSED __attribute__((__unused__)) #else #define PF(a, b) #define DEAD +#define UNUSED #endif #define HOWMANY(arr) (sizeof(arr)/sizeof((arr)[0]))