From 601c7c8e3ced8bb6447da65a6062d37f42c39f54 Mon Sep 17 00:00:00 2001 From: Ken Steele Date: Mon, 18 Nov 2013 13:28:17 -0500 Subject: [PATCH] Cleanup Tile build for -Werror Just the changes needed for the Tile architecture to compile cleanly with -Werror. --- src/runmode-tile.c | 2 +- src/runmode-tile.h | 2 +- src/threads-arch-tile.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/runmode-tile.c b/src/runmode-tile.c index 5fadb4aaa8..9e86a72ee3 100644 --- a/src/runmode-tile.c +++ b/src/runmode-tile.c @@ -46,7 +46,7 @@ #ifdef HAVE_MPIPE /* Number of configured parallel pipelines. */ -unsigned int tile_num_pipelines; +int tile_num_pipelines; #endif /* diff --git a/src/runmode-tile.h b/src/runmode-tile.h index f75c05423a..8e0af793a9 100644 --- a/src/runmode-tile.h +++ b/src/runmode-tile.h @@ -32,7 +32,7 @@ const char *RunModeTileMpipeGetDefaultMode(void); void RunModeTileMpipeRegister(void); -extern unsigned int tile_num_pipelines; +extern int tile_num_pipelines; int RunModeTileMpipeWorkers(DetectEngineCtx *); diff --git a/src/threads-arch-tile.h b/src/threads-arch-tile.h index 1e19220506..a0e2fc501d 100644 --- a/src/threads-arch-tile.h +++ b/src/threads-arch-tile.h @@ -80,8 +80,8 @@ /* Ignore signals when using spin locks */ #define SCCondT uint8_t #define SCCondInit(x,y) ({ 0; }) -#define SCCondSignal(x) -#define SCCondDestroy(x) +#define SCCondSignal(x) ({ 0; }) +#define SCCondDestroy(x) ({ 0; }) static inline void cycle_sleep(int cycles) {