Skip to content

Commit 1f42337

Browse files
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 7644a73. Reported-by: Tom Lane Discussion: https://postgr.es/m/3189995.1711495704%40sss.pgh.pa.us
1 parent ffa9bb5 commit 1f42337

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/include/port/pg_lfind.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,10 @@ pg_lfind32(uint32 key, uint32 *base, uint32 nelem)
194194
Assert(assert_result == pg_lfind32_simd_helper(keys, &base[nelem - nelem_per_iteration]));
195195
return pg_lfind32_simd_helper(keys, &base[nelem - nelem_per_iteration]);
196196

197+
one_by_one:
198+
197199
#endif /* ! USE_NO_SIMD */
198200

199-
one_by_one:
200201
/* Process the elements one at a time. */
201202
for (; i < nelem; i++)
202203
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy