From: G.E. Date: Mon, 15 Apr 2024 08:44:22 +0000 (+0300) Subject: one more place to fix where clang in bsd is more picky than gcc in linux X-Git-Tag: vectorscan/5.4.12^2~68^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0916df82560d35a0f301efc4db44eaa3a132be0;p=thirdparty%2Fvectorscan.git one more place to fix where clang in bsd is more picky than gcc in linux --- diff --git a/src/rose/rose_build_program.cpp b/src/rose/rose_build_program.cpp index 1e0fe24b..861855b5 100644 --- a/src/rose/rose_build_program.cpp +++ b/src/rose/rose_build_program.cpp @@ -1161,7 +1161,7 @@ static really_inline void nibUpdate(map &nib, u32 hi_lo) { u16 hi = hi_lo >> 16; u16 lo = hi_lo & 0xffff; - for (const auto pairs : nib) { + for (const auto &pairs : nib) { u32 old = pairs.first; if ((old >> 16) == hi || (old & 0xffff) == lo) { if (!nib[old | hi_lo]) {