From 6ede5a44ec3f3a94f303de149bbcaed22c0be1ab Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 26 Oct 2025 00:16:43 +0000 Subject: [PATCH] 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'. --- lib/PublicInbox/xh_cidx.h | 1 + 1 file changed, 1 insertion(+) 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) -- 2.47.3