From: Eric Wong Date: Sun, 26 Oct 2025 00:16:43 +0000 (+0000) Subject: xh_cidx: include khashl.h to placate cppcheck(1) X-Git-Tag: v2.0.0~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6ede5a44ec3f3a94f303de149bbcaed22c0be1ab;p=thirdparty%2Fpublic-inbox.git xh_cidx: include khashl.h to placate cppcheck(1) cppcheck(1) will complain about things normal compilers don't. While this #include is unnecessary to us since we only have a single compilation unit and don't intend to reuse this header elsewhere, it seems mostly harmless since GNU and clang preprocessors should be able to optimize out redundant headers, anyways, even w/o `#pragma once'. --- diff --git a/lib/PublicInbox/xh_cidx.h b/lib/PublicInbox/xh_cidx.h index fa9d1ee42..c725e07ad 100644 --- a/lib/PublicInbox/xh_cidx.h +++ b/lib/PublicInbox/xh_cidx.h @@ -6,6 +6,7 @@ // TODO: consider making PublicInbox::CodeSearchIdx emit binary // (20 or 32-bit) OIDs instead of ASCII hex. It would require // more code in both Perl and C++, though... +#include "khashl.h" // assumes trusted data from same host static inline unsigned int hex2uint(char c)