Skip to content

Conversation

@garlic-hub
Copy link

@garlic-hub garlic-hub commented Jun 19, 2025

Fixes Wall and Wextra warnings emitted from gcc 13.3. Also enables Werror to prevent new warnings in the future. Attempted to test with clang as well, but my distro doesn't seem to build it with OMP support enabled.


returnIndex = ((size_t) floor((1.0 - alpha) * ((double) simulation_rounds))) - 1;
assert((returnIndex >= 0) && (returnIndex < simulation_rounds));
assert(returnIndex < simulation_rounds);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bonus of fixing the signed unsigned comparison on this line is that >= 0 is not required anymore since unsigned values can't be negative

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