diff options
author | Nathan Bossart | 2024-03-27 01:27:46 +0000 |
---|---|---|
committer | Nathan Bossart | 2024-03-27 01:27:46 +0000 |
commit | 1f42337be535243e665f85916ce21b2d85d9f2b3 (patch) | |
tree | 7ae19a8a5d448ef9d8ce1bfed6ea9a64b8467e7c | |
parent | ffa9bb53ecb1cec14039d0c78e6f941565e8f986 (diff) |
Fix compiler warning for pg_lfind32().
The newly-introduced "one_by_one" label produces -Wunused-label
warnings when building without SIMD support. To fix, move the
label into the SIMD section of this function.
Oversight in commit 7644a7340c.
Reported-by: Tom Lane
Discussion: https://postgr.es/m/3189995.1711495704%40sss.pgh.pa.us
-rw-r--r-- | src/include/port/pg_lfind.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/port/pg_lfind.h b/src/include/port/pg_lfind.h index dbc3e9fc6a5..33e8471b031 100644 --- a/src/include/port/pg_lfind.h +++ b/src/include/port/pg_lfind.h @@ -194,9 +194,10 @@ pg_lfind32(uint32 key, uint32 *base, uint32 nelem) Assert(assert_result == pg_lfind32_simd_helper(keys, &base[nelem - nelem_per_iteration])); return pg_lfind32_simd_helper(keys, &base[nelem - nelem_per_iteration]); +one_by_one: + #endif /* ! USE_NO_SIMD */ -one_by_one: /* Process the elements one at a time. */ for (; i < nelem; i++) { |