Skip to content

Commit

Permalink
suppress print warnings/errors
Browse files Browse the repository at this point in the history
  • Loading branch information
recp committed Oct 28, 2021
1 parent fd82c0e commit c340582
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#include <inttypes.h>

DS_EXPORT
int
Expand Down Expand Up @@ -107,25 +108,25 @@ ds_print_ptr(void *key) {
DS_EXPORT
void
ds_print_i32(void *key) {
printf("\t%d\n", *(int32_t *)key);
printf("\t%" PRId32 "\n", *(int32_t *)key);
}

DS_EXPORT
void
ds_print_ui32(void *key) {
printf("\t%u\n", *(uint32_t *)key);
printf("\t%" PRIu32 "\n", *(uint32_t *)key);
}

DS_EXPORT
void
ds_print_i64(void *key) {
printf("\t%llu\n", *(int64_t *)key);
printf("\t%" PRId64 "\n", *(int64_t *)key);
}

DS_EXPORT
void
ds_print_ui64(void *key) {
printf("\t%llu\n", *(uint64_t *)key);
printf("\t%" PRIu64 "\n", *(uint64_t *)key);
}

DS_EXPORT
Expand Down

0 comments on commit c340582

Please sign in to comment.