Hi This is one step towards building monkey without any warnings. It'll get used in subsequent patches.
- Lauri
>From d97f24d2c0c4c87d3698d4d6e332e04eeb4e8f27 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen <[email protected]> Date: Wed, 13 Jun 2012 18:21:27 +0300 Subject: [PATCH] macros: Add a macro to skip warnings about possibly unused parameters Signed-off-by: Lauri Kasanen <[email protected]> --- src/include/mk_macros.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/include/mk_macros.h b/src/include/mk_macros.h index 68b16ea..13f53a5 100644 --- a/src/include/mk_macros.h +++ b/src/include/mk_macros.h @@ -68,6 +68,12 @@ #define PRINTF_WARNINGS(a,b) #endif +#ifdef __GNUC__ /* GCC supports this since 2.7. */ + #define UNUSED_PARAM __attribute__ ((unused)) +#else + #define UNUSED_PARAM +#endif + /* * Validation macros * ----------------- -- 1.7.2.1
_______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
