* spot/misc/common.hh (SPOT_FALLTHROUGH): Work around Clang 3.5.
This commit is contained in:
parent
7ff50d8913
commit
ed45be98ea
1 changed files with 7 additions and 1 deletions
|
|
@ -129,7 +129,13 @@
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#ifndef SPOT_FALLTHROUGH
|
#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
|
#endif
|
||||||
|
|
||||||
namespace spot
|
namespace spot
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue