diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/gdisp_emulation.c | 13 | ||||
-rw-r--r-- | include/touchpad.h | 2 | ||||
-rw-r--r-- | include/touchpad_lld.h | 2 |
3 files changed, 5 insertions, 12 deletions
diff --git a/include/gdisp_emulation.c b/include/gdisp_emulation.c index b38ca281..c81bd305 100644 --- a/include/gdisp_emulation.c +++ b/include/gdisp_emulation.c @@ -33,15 +33,6 @@ #if HAL_USE_GDISP || defined(__DOXYGEN__)
-#ifdef UNUSED
-#elif defined(__GNUC__)
-# define UNUSED(x) UNUSED_ ## x __attribute__((unused))
-#elif defined(__LCLINT__)
-# define UNUSED(x) /*@unused@*/ x
-#else
-# define UNUSED(x) x
-#endif
-
#ifndef GDISP_LLD_NO_STRUCT
static struct GDISPDriver {
coord_t Width;
@@ -587,7 +578,9 @@ #if GDISP_NEED_CONTROL && !GDISP_HARDWARE_CONTROL
- void GDISP_LLD(control)(unsigned UNUSED(what), void *UNUSED(value)) {
+ void GDISP_LLD(control)(unsigned what, void *value) {
+ (void)what;
+ (void)value;
/* Ignore everything */
}
#endif
diff --git a/include/touchpad.h b/include/touchpad.h index 4d4931fe..d168fc0c 100644 --- a/include/touchpad.h +++ b/include/touchpad.h @@ -1,5 +1,5 @@ /* - ChibiOS/GFX/RT - Copyright (C) 2012 + ChibiOS/GFX - Copyright (C) 2012 Joel Bodenmann aka Tectu <joel@unormal.org> This file is part of ChibiOS/GFX. diff --git a/include/touchpad_lld.h b/include/touchpad_lld.h index 0292aac4..d00b6e6f 100644 --- a/include/touchpad_lld.h +++ b/include/touchpad_lld.h @@ -1,5 +1,5 @@ /* - ChibiOS/GFX/RT - Copyright (C) 2012 + ChibiOS/GFX - Copyright (C) 2012 Joel Bodenmann aka Tectu <joel@unormal.org> This file is part of ChibiOS/GFX. |