summaryrefslogtreecommitdiff
path: root/test/fops
diff options
context:
space:
mode:
authorAlex Gorrod <alexg@wiredtiger.com>2013-11-01 16:18:48 +1100
committerAlex Gorrod <alexg@wiredtiger.com>2013-11-01 16:18:48 +1100
commit1e9c8b91d1f49563003b9fc0ed7778f7f122d77d (patch)
tree3de019755d24c75b4d2afc2e7ad632dd716f6976 /test/fops
parente37cb6128fc61010a27b65271a32cd6cfe7157f1 (diff)
downloadmongo-1e9c8b91d1f49563003b9fc0ed7778f7f122d77d.tar.gz
Fix compiler warnings with GCC 4.7.2 on Ubuntu.
Diffstat (limited to 'test/fops')
-rw-r--r--test/fops/t.c2
-rw-r--r--test/fops/thread.h5
2 files changed, 6 insertions, 1 deletions
diff --git a/test/fops/t.c b/test/fops/t.c
index 65ef38ae08b..6a43583177d 100644
--- a/test/fops/t.c
+++ b/test/fops/t.c
@@ -178,7 +178,7 @@ wt_shutdown(void)
static void
shutdown(void)
{
- (void)system("rm -f WiredTiger* __wt*");
+ UNUSED_RET(system("rm -f WiredTiger* __wt*"));
}
static int
diff --git a/test/fops/thread.h b/test/fops/thread.h
index 4d118efa4de..09c54e13eab 100644
--- a/test/fops/thread.h
+++ b/test/fops/thread.h
@@ -40,6 +40,11 @@
#include <wiredtiger.h>
#define UNUSED(v) (void)(v) /* Quiet unused var warnings */
+/*
+ * Quiet compiler warning for unused result.
+ */
+#define UNUSED_RET(var) \
+ ({ __typeof__(var) __ret = var; (void)sizeof __ret; })
extern WT_CONNECTION *conn; /* WiredTiger connection */