summaryrefslogtreecommitdiff
path: root/src/async
diff options
context:
space:
mode:
authorKeith Bostic <keith.bostic@mongodb.com>2016-08-12 02:49:03 -0400
committerMichael Cahill <michael.cahill@mongodb.com>2016-08-12 16:49:03 +1000
commitf69bbc18148c6fced50b01e04d552f0053fce20c (patch)
treea6d4f7250d32505ea9e0c94ceca4a98ce7416cb4 /src/async
parenta044bf81ace95df8fd9a5fd85fcf2c15f898cbd8 (diff)
downloadmongo-f69bbc18148c6fced50b01e04d552f0053fce20c.tar.gz
WT-2820 add gcc warn_unused_result attribute (#2938)
* Add the gcc "cold" attribute to the verbose, message, and assorted error functions (informs the compiler that the function is unlikely to be executed). * Add the WT_IGNORE_RET() macro that ignores return values in the handfull of places we want to ignore return values. * Replace calls to fprintf() in the utility with calls to util_err(), replace local variable names in error messages with class names.
Diffstat (limited to 'src/async')
-rw-r--r--src/async/async_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/async/async_api.c b/src/async/async_api.c
index d53a6c65c1d..42fe4378d15 100644
--- a/src/async/async_api.c
+++ b/src/async/async_api.c
@@ -89,7 +89,7 @@ setup: op->format = af;
err:
if (c != NULL)
- (void)c->close(c);
+ WT_TRET(c->close(c));
__wt_free(session, af->uri);
__wt_free(session, af->config);
__wt_free(session, af->key_format);