From 559dbe21c4644ac9b7352eaee881decc954f668c Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 31 May 2011 15:46:52 +0300 Subject: g/d/r: ifdef some unused functions to avoid unused warning --- src/gallium/drivers/remote/debug.c | 3 ++- src/gallium/drivers/remote/remote_comms.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/remote/debug.c b/src/gallium/drivers/remote/debug.c index 06c7cddbae..ccf9f7d68c 100644 --- a/src/gallium/drivers/remote/debug.c +++ b/src/gallium/drivers/remote/debug.c @@ -1,6 +1,7 @@ #include "remote_messages.h" +#ifdef CS_DEBUG char* optotext(unsigned opcode) { switch(opcode) { @@ -327,4 +328,4 @@ char* optotext(unsigned opcode) { return "*** UNRECOGNISED OPCODE ***"; } } - +#endif // CS_DEBUG diff --git a/src/gallium/drivers/remote/remote_comms.c b/src/gallium/drivers/remote/remote_comms.c index fb788c328f..7a0f417dab 100644 --- a/src/gallium/drivers/remote/remote_comms.c +++ b/src/gallium/drivers/remote/remote_comms.c @@ -129,6 +129,7 @@ void* allocate_message_memory(size_t bytes) { } +#ifdef DEBUG_RING_WRITE static void debug_print_bytes(char* bytes, int n) { for(int i = 0; i < n; i++) { @@ -140,6 +141,7 @@ static void debug_print_bytes(char* bytes, int n) { printf("\n"); } +#endif // DEBUG_RING_WRITE static int sendsome(uint32_t* readoff, uint32_t* writeoff, uint32_t bufsize, char* writebuf, char* data, int length) { -- cgit v1.2.3