bpo-30923: Suppress fall-through warnings in libmpdec. (#2698) · python/cpython@72b5433 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 72b5433
Stefan Krah
authored
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2119,6 +2119,9 @@ def _decimal_ext(self): | ||
2119 | 2119 | else: |
2120 | 2120 | raise DistutilsError("_decimal: unsupported architecture") |
2121 | 2121 | |
2122 | +if 'gcc' in cc: # Suppressing the warnings in the source is too verbose. | |
2123 | +extra_compile_args.append('-Wno-implicit-fallthrough') | |
2124 | + | |
2122 | 2125 | # Workarounds for toolchain bugs: |
2123 | 2126 | if sysconfig.get_config_var('HAVE_IPA_PURE_CONST_BUG'): |
2124 | 2127 | # Some versions of gcc miscompile inline asm: |