diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2013-11-01 16:18:48 +1100 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2013-11-01 16:18:48 +1100 |
commit | 1e9c8b91d1f49563003b9fc0ed7778f7f122d77d (patch) | |
tree | 3de019755d24c75b4d2afc2e7ad632dd716f6976 /test/fops | |
parent | e37cb6128fc61010a27b65271a32cd6cfe7157f1 (diff) | |
download | mongo-1e9c8b91d1f49563003b9fc0ed7778f7f122d77d.tar.gz |
Fix compiler warnings with GCC 4.7.2 on Ubuntu.
Diffstat (limited to 'test/fops')
-rw-r--r-- | test/fops/t.c | 2 | ||||
-rw-r--r-- | test/fops/thread.h | 5 |
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 */ |