mirror of https://github.com/CGAL/cgal
Merge pull request #6519 from sloriot/Intel-fallthrough
Update fallthrough for intel compiler
This commit is contained in:
commit
5994eb48b5
|
|
@ -487,11 +487,11 @@ namespace cpp11{
|
|||
// http://clang.llvm.org/docs/AttributeReference.html#statement-attributes
|
||||
// See for gcc:
|
||||
// https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
|
||||
#if __cpp_attributes >= 200809 && __has_cpp_attribute(fallthrough)
|
||||
#if __cplusplus > 201402L && __has_cpp_attribute(fallthrough)
|
||||
# define CGAL_FALLTHROUGH [[fallthrough]]
|
||||
#elif __cpp_attributes >= 200809 && __has_cpp_attribute(gnu::fallthrough)
|
||||
#elif __has_cpp_attribute(gnu::fallthrough)
|
||||
# define CGAL_FALLTHROUGH [[gnu::fallthrough]]
|
||||
#elif __cpp_attributes >= 200809 && __has_cpp_attribute(clang::fallthrough)
|
||||
#elif __has_cpp_attribute(clang::fallthrough)
|
||||
# define CGAL_FALLTHROUGH [[clang::fallthrough]]
|
||||
#elif __has_attribute(fallthrough) && ! __clang__
|
||||
# define CGAL_FALLTHROUGH __attribute__ ((fallthrough))
|
||||
|
|
|
|||
Loading…
Reference in New Issue