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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f872c289bd6f98c067444fb93ad0c03154b4a1b3;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]) {