This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
ATTRIBUTE_UNUSED
- To: cgen at sourceware dot cygnus dot com
- Subject: ATTRIBUTE_UNUSED
- From: Doug Evans <dje at transmeta dot com>
- Date: Sun, 20 Aug 2000 08:28:03 -0700
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;