Repository : ssh://git@open-mesh.org/batmand
On branch : master
commit 5177c5f08e529f5d4025a20bbc20be5d038e5ead Author: Sven Eckelmann sven@narfation.org Date: Sun Sep 15 17:46:40 2013 +0200
Mark unused parameter in dummy functions
Signed-off-by: Sven Eckelmann sven@narfation.org
5177c5f08e529f5d4025a20bbc20be5d038e5ead allocate.c | 4 +++- profile.c | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/allocate.c b/allocate.c index 4196dab..c6c3082 100644 --- a/allocate.c +++ b/allocate.c @@ -421,6 +421,8 @@ void debugFree(void *memoryParameter, int tag)
#else
+#include "batman.h" + void checkIntegrity(void) { } @@ -459,7 +461,7 @@ void *debugRealloc(void *memory, uint32_t length, int32_t tag) return result; }
-void debugFree(void *memory, int32_t tag) +void debugFree(void *memory, int32_t BATMANUNUSED(tag)) { free(memory); } diff --git a/profile.c b/profile.c index 9692d7d..a063750 100644 --- a/profile.c +++ b/profile.c @@ -80,20 +80,21 @@ void prof_print(void) {
#else
+#include "batman.h"
-void prof_init( int32_t index, const char *name ) { +void prof_init( int32_t BATMANUNUSED(index), const char *BATMANUNUSED(name) ) {
}
-void prof_start( int32_t index ) { +void prof_start( int32_t BATMANUNUSED(index) ) {
}
-void prof_stop( int32_t index ) { +void prof_stop( int32_t BATMANUNUSED(index) ) {
}