Skip to content

fix: silence third-party header warnings via -isystem - #2

Merged
ausimian merged 1 commit into
mainfrom
fix/silence-third-party-warnings
Apr 14, 2026
Merged

fix: silence third-party header warnings via -isystem#2
ausimian merged 1 commit into
mainfrom
fix/silence-third-party-warnings

Conversation

@ausimian

Copy link
Copy Markdown
Owner

Summary

  • Third-party headers (MLX, fine) now included with -isystem instead of -I; compiler treats them as system headers and suppresses diagnostics inside them.
  • Fixes the noisy -Wdeprecated-copy from MLX's bf16.h that showed up as a GitHub Actions annotation on the CI PR build (benign, but alarming in the UI and would trip -Werror).
  • Our own code still compiles under full -Wall -Wextra -Werror via mix precommit.

Test plan

  • Full rebuild locally (rm -rf + mix compile --force --warnings-as-errors) — clean, zero warnings.
  • CI precommit green on this PR.

MLX's bf16.h triggers -Wdeprecated-copy on its own implicit copy
assignment operator. The warning isn't actionable from our side — it's
an upstream issue — but it clutters the build log and, with
-Werror, would break CI.

Switch `-I` to `-isystem` for both MLX and fine includes so the
compiler treats them as system headers and suppresses diagnostics
inside them. Our own code keeps full warning coverage under
$(ERTS_INCLUDE_DIR)/-I paths.
@ausimian
ausimian merged commit 95265fa into main Apr 14, 2026
2 checks passed
@ausimian
ausimian deleted the fix/silence-third-party-warnings branch April 14, 2026 01:37
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