Skip to content

Conversation

@naoNao89
Copy link
Contributor

@naoNao89 naoNao89 commented Dec 17, 2025

Fixes #283

warnings(false) now actually suppresses compiler warnings instead of doing nothing.

Previously, calling warnings(false) didn't add any flags, so the compiler still showed warnings.

Now it actively adds -w (GCC/Clang) or -W0 (MSVC) to properly disable them. No more needing the .flag("-Wno-all") workaround

…rnings Previously, calling warnings(false) didn't add any flags, so the compiler still showed warnings. Now it actively adds -w (GCC/Clang) or -W0 (MSVC) to properly disable them. Changes: - Added warnings_suppression_flags() method to ToolFamily - Modified warning logic to handle warnings(false) case explicitly - Added tests for GNU and MSVC warning suppression
@naoNao89 naoNao89 force-pushed the fix/warnings-false-suppression branch from f1981c4 to 323e896 Compare December 17, 2025 18:30
Copy link
Contributor

@NobodyXu NobodyXu left a comment

Choose a reason for hiding this comment

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

Thank you!

@NobodyXu NobodyXu merged commit cd1d949 into rust-lang:main Dec 18, 2025
79 checks passed
@naoNao89 naoNao89 deleted the fix/warnings-false-suppression branch December 18, 2025 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants