cpu-6502: introduce used() macro
authorAlan Cox <alan@linux.intel.com>
Fri, 30 Jan 2015 00:21:13 +0000 (00:21 +0000)
committerAlan Cox <alan@linux.intel.com>
Fri, 30 Jan 2015 00:21:13 +0000 (00:21 +0000)
So we can tidy up all the unused argument warnings

Kernel/cpu-6502/cpu.h

index c861066..39a3a68 100644 (file)
@@ -50,6 +50,9 @@ typedef union {            /* this structure is endian dependent */
     } h;
 } ticks_t;
 
+/* Sane behaviour for unused parameters */
+#define used(x)
+
 /* We don't yet have bank attributes and banking for 6502 */
 #define CODE1
 #define CODE2