mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix some warnings produced by different compilers. (#5593)
This commit is contained in:
parent
5bb0005f9f
commit
bfe4fd5f2e
6 changed files with 19 additions and 7 deletions
|
@ -53,6 +53,12 @@
|
|||
#endif
|
||||
|
||||
|
||||
/* Disable warning that is part of -Wextra since gcc 7.0. */
|
||||
#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && __GNUC__ >= 7
|
||||
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#define ALWAYS_INLINE __forceinline
|
||||
#elif defined(LEGACY_COMPILER)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue