From 2275a09f73046768a446b8dbb4d467de35b0f80b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 22 Jun 2024 19:06:07 -0400 Subject: Add missing const qualifier --- src/hash.c | 2 +- test/meson.build | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hash.c b/src/hash.c index 7fc345d..7576eba 100644 --- a/src/hash.c +++ b/src/hash.c @@ -175,7 +175,7 @@ rehash(ZixHash* const hash, const size_t old_n_entries) // Reinsert every element into the new array for (size_t i = 0U; i < old_n_entries; ++i) { - ZixHashEntry* const entry = &old_entries[i]; + const ZixHashEntry* const entry = &old_entries[i]; if (entry->value) { assert(hash->mask == hash->n_entries - 1U); diff --git a/test/meson.build b/test/meson.build index fbcaac9..3028d4c 100644 --- a/test/meson.build +++ b/test/meson.build @@ -50,7 +50,6 @@ if not meson.is_subproject() and get_option('lint') '--project=' + compdb_path, '--suppress=constParameterCallback', '--suppress=constParameterPointer', - '--suppress=constVariablePointer', '--suppress=knownConditionTrueFalse', '--suppress=selfAssignment', '--suppress=unreadVariable', -- cgit v1.2.1