summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2013-08-08 11:40:35 +1000
committerMichael Cahill <michael.cahill@wiredtiger.com>2013-08-08 11:40:35 +1000
commit131f70a4c033a416df30e3e24487560a3bea80af (patch)
tree37704f0e6267f9fde3baeea27b52b20a02c08ff7 /examples
parent20ec86b44400982c346d1a55bd9954cf75b42784 (diff)
downloadmongo-131f70a4c033a416df30e3e24487560a3bea80af.tar.gz
examples/c/ex_data_source.c:174:6: error: variable ‘is_snapshot_isolation’ set but not used [-Werror=unused-but-set-variable]
examples/c/ex_data_source.c:168:6: error: variable ‘ret’ set but not used [-Werror=unused-but-set-variable]
Diffstat (limited to 'examples')
-rw-r--r--examples/c/ex_data_source.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/c/ex_data_source.c b/examples/c/ex_data_source.c
index 4db0e9ffa69..e65d21cd058 100644
--- a/examples/c/ex_data_source.c
+++ b/examples/c/ex_data_source.c
@@ -179,6 +179,7 @@ static int my_cursor_insert(WT_CURSOR *wtcursor)
else
is_snapshot_isolation = 0;
/*! [WT_EXTENSION transaction isolation level] */
+ (void)is_snapshot_isolation;
}
{
@@ -239,7 +240,7 @@ static int my_cursor_insert(WT_CURSOR *wtcursor)
/*! [WT_EXTENSION collate] */
}
- return (0);
+ return (ret);
}
static int my_cursor_update(WT_CURSOR *wtcursor)