Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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)