[Cython] Issues with CYTHON_FALLTHROUGH

Stefan Behnel stefan_ml at behnel.de
Fri Oct 13 18:22:10 EDT 2017


Lisandro Dalcin schrieb am 13.10.2017 um 21:42:
> This is from a conda-forge build of petsc4py on Travis-CI with
> "osx_image: xcode6.4"
> 
> https://travis-ci.org/conda-forge/petsc4py-feedstock/jobs/287563030
> 
> 
> Maybe a better definition is the one below?
> 
>   #ifndef CYTHON_FALLTHROUGH
>     #if defined(__clang__) && __has_attribute(fallthrough)
>       #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
>     #elif defined(__GNUC__) && defined(__attribute__)
>       #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
>     #else
>       #define CYTHON_FALLTHROUGH
>     #endif
>   #endif

Applied it here:

https://github.com/cython/cython/commit/207d694ac2a580f02b28e216d0843308f5ad129b

Stefan


More information about the cython-devel mailing list