diff options
author | Keith Bostic <keith.bostic@mongodb.com> | 2016-08-12 02:49:03 -0400 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2016-08-12 16:49:03 +1000 |
commit | f69bbc18148c6fced50b01e04d552f0053fce20c (patch) | |
tree | a6d4f7250d32505ea9e0c94ceca4a98ce7416cb4 /test | |
parent | a044bf81ace95df8fd9a5fd85fcf2c15f898cbd8 (diff) | |
download | mongo-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 'test')
-rw-r--r-- | test/thread/rw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/thread/rw.c b/test/thread/rw.c index 10f13b9eb04..c6107a06c49 100644 --- a/test/thread/rw.c +++ b/test/thread/rw.c @@ -175,8 +175,8 @@ reader_op(WT_SESSION *session, WT_CURSOR *cursor, INFO *s) if ((ret = cursor->search(cursor)) != 0 && ret != WT_NOTFOUND) testutil_die(ret, "cursor.search"); if (log_print) - (void)session->log_printf(session, - "Reader Thread %p key %017u", pthread_self(), keyno); + testutil_check(session->log_printf(session, + "Reader Thread %p key %017u", pthread_self(), keyno)); } /* @@ -276,8 +276,8 @@ writer_op(WT_SESSION *session, WT_CURSOR *cursor, INFO *s) testutil_die(ret, "cursor.update"); } if (log_print) - (void)session->log_printf(session, - "Writer Thread %p key %017u", pthread_self(), keyno); + testutil_check(session->log_printf(session, + "Writer Thread %p key %017u", pthread_self(), keyno)); } /* |