From 843d2361dcc0247309eac4be430ccc814599ae28 Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Sun, 17 Mar 2013 23:53:46 +0100 Subject: [PATCH] Include the rimestats variable only if rimestats are enabled by the configuration --- core/net/rime/rimestats.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/net/rime/rimestats.h b/core/net/rime/rimestats.h index 3fd9b06b7..607aa78ad 100644 --- a/core/net/rime/rimestats.h +++ b/core/net/rime/rimestats.h @@ -55,8 +55,11 @@ struct rimestats { unsigned long lltx, llrx; }; +#if RIMESTATS_CONF_ENABLED extern struct rimestats rimestats; - #define RIMESTATS_ADD(x) rimestats.x++ +#else /* RIMESTATS_CONF_ENABLED */ +#define RIMESTATS_ADD(x) +#endif /* RIMESTATS_CONF_ENABLED */ #endif /* __RIMESTATS_H__ */