Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1f42337

Browse filesBrowse 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
Copy full SHA for 1f42337

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎src/include/port/pg_lfind.h

Copy file name to clipboardExpand all lines: src/include/port/pg_lfind.h
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.