Skip to content

Commit

Permalink
Fix all compilation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-graj committed Apr 24, 2023
1 parent 1cba834 commit bb60978
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/hashmap_c/hashmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ struct hashmap *hashmap_new_with_allocator(
_malloc = _malloc ? _malloc : malloc;
_realloc = _realloc ? _realloc : realloc;
_free = _free ? _free : free;
int ncap = 16;
size_t ncap = 16;
if (cap < ncap) {
cap = ncap;
} else {
Expand Down Expand Up @@ -609,6 +609,7 @@ uint64_t hashmap_murmur(const void *data, size_t len,
char out[16];
MM86128(data, len, seed0, &out);
return *(uint64_t*)out;
(void)seed1;
}

//==============================================================================
Expand Down
8 changes: 8 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ project(
],
)

add_project_arguments(
'-Wno-implicit-fallthrough',
'-Wno-dangling-else',
'-Wno-newline-eof',
'-Wno-unknown-pragmas',
language : ['c'],
)

cc = meson.get_compiler('c')

deps = [
Expand Down

0 comments on commit bb60978

Please sign in to comment.