From 85f6d041a2afe82e9f6bf21b694c5dd057a14836 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 30 Jan 2015 00:21:38 +0000 Subject: [PATCH] cpu-z80: introduce used() macro SDCC wants the reverse behaviour to everyone else --- Kernel/cpu-z80/cpu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Kernel/cpu-z80/cpu.h b/Kernel/cpu-z80/cpu.h index 8cab8619..2d41d264 100644 --- a/Kernel/cpu-z80/cpu.h +++ b/Kernel/cpu-z80/cpu.h @@ -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__ -- 2.34.1