This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ATTRIBUTE_UNUSED


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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]