Commit ed3da54e authored by Stefan Behnel's avatar Stefan Behnel

Tighten preprocessor check that avoids the "fallthrough" C compiler warnings.

Closes #1930.
parent 5aad2f56
......@@ -516,7 +516,7 @@
#endif
#ifndef CYTHON_FALLTHROUGH
#if !defined(_MSC_VER) && __has_attribute(fallthrough)
#if (defined(__GNUC__) || defined(__clang__)) && __has_attribute(fallthrough)
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
#else
#define CYTHON_FALLTHROUGH
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment