Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
ed45be98
Commit
ed45be98
authored
Oct 10, 2016
by
Alexandre Duret-Lutz
Browse files
* spot/misc/common.hh (SPOT_FALLTHROUGH): Work around Clang 3.5.
parent
7ff50d89
Changes
1
Hide whitespace changes
Inline
Side-by-side
spot/misc/common.hh
View file @
ed45be98
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment