Skip to content

add flags to report warnings as errors on debug builds#686

Merged
K20shores merged 6 commits intomainfrom
address_warnings
Nov 25, 2025
Merged

add flags to report warnings as errors on debug builds#686
K20shores merged 6 commits intomainfrom
address_warnings

Conversation

@K20shores
Copy link
Copy Markdown
Collaborator

Requires NCAR/tuv-x#150 to be merged so I can update the tag, but this removes warnings and adds some cmake to report warnings as errors

@github-actions
Copy link
Copy Markdown
Contributor

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.39%. Comparing base (f91fe87) to head (4229d33).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #686      +/-   ##
==========================================
+ Coverage   81.12%   81.39%   +0.27%     
==========================================
  Files          65      112      +47     
  Lines        7538     9837    +2299     
==========================================
+ Hits         6115     8007    +1892     
- Misses       1423     1830     +407     
Flag Coverage Δ
cpp_fortran 79.74% <100.00%> (ø)
javascript 92.19% <ø> (ø)
python 82.29% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds compiler flags to treat warnings as errors in debug builds and updates dependencies. It modifies the CMake configuration to enable -Werror (or /WX for MSVC) for debug builds, excludes the NVHPC debug build from CI due to unavoidable compiler warnings, updates the TUV-x dependency to a specific commit hash, and replaces std::strcpy with memcpy in one location to address a compiler warning.

  • Enables -Werror flag for debug builds to catch warnings early
  • Updates TUV-x dependency from v0.13.0 tag to a specific commit hash
  • Replaces std::strcpy with memcpy in util.cpp to eliminate a warning

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/util.cpp Replaces std::strcpy with memcpy for string copying
cmake/setup_musica_target.cmake Adds -Werror (or /WX for MSVC) compiler option for debug builds
cmake/dependencies.cmake Updates TUVX_GIT_TAG from version tag to specific commit hash
.github/workflows/docker.yml Excludes NVHPC debug builds from CI matrix due to unavoidable warnings

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@K20shores K20shores merged commit 0023662 into main Nov 25, 2025
70 checks passed
@K20shores K20shores deleted the address_warnings branch November 25, 2025 22:55
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.

4 participants