Fix new compiler warning failures#1199
Merged
Merged
Conversation
Collaborator
Author
|
/build |
Contributor
Greptile SummaryThis PR silences new compiler warning failures triggered by nvc++ and other compilers across three files, with no logic changes.
Confidence Score: 5/5All three changes are narrow warning suppressions that do not alter runtime behavior; safe to merge. Each fix is minimal and targeted: the CMake suppression is correctly scoped to CUDA TUs under nvc++, the [[maybe_unused]] annotation matches the well-known NDEBUG/assert pattern, and the explicit static_cast in the SAR kernel preserves the existing floating-point semantics while making the type conversion explicit. No logic is changed in any file. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Compiler Warning Failures] --> B{Compiler type?}
B -->|nvc++| C[CMakeLists.txt\nSuppress if_consteval_in_nonconstexpr_function\nfor CUDA translation units only]
B -->|Any compiler| D[pybind.h\nAdd maybe_unused to valid_size\nsilences unused-var in NDEBUG builds]
B -->|Any compiler| E[sar_bp.cuh\nHoist phase_correction_partial * range_delta\ninto explicit strict_compute_t phase\nremoves narrowing-conversion warning]
C --> F[Warnings resolved]
D --> F
E --> F
Reviews (1): Last reviewed commit: "Fix new compiler warning failures" | Re-trigger Greptile |
tbensonatl
approved these changes
Jun 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.