This commit is contained in:
Laurent Rineau 2016-10-13 10:14:59 +02:00 committed by Andreas Fabri
parent 90aa157c7b
commit 5df371c0c1
1 changed files with 3 additions and 3 deletions

View File

@ -563,11 +563,11 @@ typedef const void * Nullptr_t; // Anticipate C++0x's std::nullptr_t
// https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
#if __has_cpp_attribute(fallthrough)
# define CGAL_FALLTHROUGH [[fallthrough]]
#elseif __has_cpp_attribute(gnu::fallthrough)
#elif __has_cpp_attribute(gnu::fallthrough)
# define CGAL_FALLTHROUGH [[gnu::fallthrough]]
#elseif __has_cpp_attribute(clang::fallthrough)
#elif __has_cpp_attribute(clang::fallthrough)
# define CGAL_FALLTHROUGH [[clang::fallthrough]]
#elseif __has_attribute(fallthrough)
#elif __has_attribute(fallthrough)
# define CGAL_FALLTHROUGH __attribute__ ((fallthrough))
#else
# define CGAL_FALLTHROUGH while(false){}