Skip to content

Commit ea14e26

Browse files
authored
Address -Wunused-but-set-variable warning in examples (#1061)
1 parent 5b91ef0 commit ea14e26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libmongoc/examples/client-side-encryption-schema-map.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ create_schema_file (bson_t *kms_providers,
9393
if (outfile) {
9494
fclose (outfile);
9595
}
96-
return true;
96+
return ret;
9797
}
9898

9999
/* This example demonstrates how to use automatic encryption with a client-side
@@ -288,4 +288,4 @@ main (int argc, char **argv)
288288
bson_destroy (schema_map);
289289
mongoc_cleanup ();
290290
return exit_status;
291-
}
291+
}

0 commit comments

Comments
 (0)