diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2013-08-08 11:40:35 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2013-08-08 11:40:35 +1000 |
commit | 131f70a4c033a416df30e3e24487560a3bea80af (patch) | |
tree | 37704f0e6267f9fde3baeea27b52b20a02c08ff7 /examples | |
parent | 20ec86b44400982c346d1a55bd9954cf75b42784 (diff) | |
download | mongo-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.c | 3 |
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) |