Skip to content

Commit 881f6d9

Browse files
author
Christian Hergert
committed
build: fix a few warnings.
1 parent 3d5fc90 commit 881f6d9

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

examples/bulk/bulk1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ bulk1 (mongoc_collection_t *collection)
3030
bson_destroy (&reply);
3131

3232
if (!ret) {
33-
fprintf (stderr, "Error: %s\n", error);
33+
fprintf (stderr, "Error: %s\n", error.message);
3434
}
3535
}
3636

examples/bulk/bulk3.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ bulk3 (mongoc_collection_t *collection)
1313
bson_t reply;
1414
char *str;
1515
bool ret;
16-
int i;
1716

1817
/* false indicates unordered */
1918
bulk = mongoc_collection_create_bulk_operation (collection, false, NULL);

src/mongoc/mongoc-write-command.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,6 @@ _mongoc_write_result_merge_legacy (mongoc_write_result_t *result, /* IN */
874874
const char *err = NULL;
875875
int32_t code = 0;
876876
int32_t n = 0;
877-
int idx;
878877

879878
ENTRY;
880879

0 commit comments

Comments
 (0)