Commit ed45be98 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

* spot/misc/common.hh (SPOT_FALLTHROUGH): Work around Clang 3.5.

parent 7ff50d89
......@@ -129,7 +129,13 @@
# endif
#endif
#ifndef SPOT_FALLTHROUGH
# define SPOT_FALLTHROUGH while (0)
// Clang 3.5 does not support __has_cpp_attribute but has
// [[clang::fallthrough]].
# if __clang__
# define SPOT_FALLTHROUGH [[clang::fallthrough]]
# else
# define SPOT_FALLTHROUGH while (0)
# endif
#endif
namespace spot
......
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