ATTRIBUTE_UNUSED
Doug Evans
dje@transmeta.com
Sun Aug 20 08:28:00 GMT 2000
Instead of doing things like this:
Index: m32r-dis.c
===================================================================
RCS file: /cvs/src/src/opcodes/m32r-dis.c,v
retrieving revision 1.4
diff -c -p -r1.4 m32r-dis.c
*** m32r-dis.c 2000/02/24 16:19:36 1.4
--- m32r-dis.c 2000/08/20 15:24:28
*************** m32r_cgen_init_dis (cd)
*** 263,274 ****
--- 263,283 ----
static void
print_normal (cd, dis_info, value, attrs, pc, length)
+ #ifdef CGEN_PRINT_NORMAL
CGEN_CPU_DESC cd;
+ #else
+ CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
+ #endif
How about just
- CGEN_CPU_DESC cd;
+ CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
More information about the Cgen
mailing list