cpu-z80: introduce used() macro
authorAlan Cox <alan@linux.intel.com>
Fri, 30 Jan 2015 00:21:38 +0000 (00:21 +0000)
committerAlan Cox <alan@linux.intel.com>
Fri, 30 Jan 2015 00:21:38 +0000 (00:21 +0000)
SDCC wants the reverse behaviour to everyone else

Kernel/cpu-z80/cpu.h

index 8cab861..2d41d26 100644 (file)
@@ -59,6 +59,8 @@ typedef union {            /* this structure is endian dependent */
 #define VIDEO
 #define DISCARD
 
+/* SDCC is arsy about unused parameters */
+#define used(x)        x
 /* No fastcall in SDCC */
 #define __fastcall__