Skip to content

Conversation

@LTLA
Copy link
Contributor

@LTLA LTLA commented Dec 14, 2025

Most of these warnings relate to unused variables, which I silenced with the (void)variable trick. Alternatives would have been to use [[maybe_unused]] but that requires C++17; or to just remove the variable name from the function signature, but the names can be self-documenting so I often prefer to leave them in.

The other major class of warnings involve signed/unsigned comparisons, which are mostly fixed by using a more appropriate loop counter or by slapping together a poor man's version of C++20's std::cmp_equal(). Also < 0 comparisons are unnecessary for unsigned integers, so I got rid of them.

Other warnings include deletion of void* in the capsules, which is fixed by casting it back to its original type; and unused static functions, when AVX extensions are not available.

Coverage of the vectorization code might be a bit iffy, it seems that sometimes the GHA runner supports AVX(512) and sometimes it doesn't. So there might still be some warnings lurking around there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant