summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-05-31 15:46:52 +0300
committerAlon Levy <alevy@redhat.com>2011-08-26 16:22:12 +0300
commit559dbe21c4644ac9b7352eaee881decc954f668c (patch)
tree662370a44b9b62c53b3b852b291cf5b8b9c08ecf
parenta12810aa1cd36df06c90ad515a883912257e9226 (diff)
g/d/r: ifdef some unused functions to avoid unused warning
-rw-r--r--src/gallium/drivers/remote/debug.c3
-rw-r--r--src/gallium/drivers/remote/remote_comms.c2
2 files changed, 4 insertions, 1 deletions
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) {