We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea7b5cb commit daa2decCopy full SHA for daa2dec
openhantek/src/hantekdso/hantekdsocontrol.cpp
@@ -1223,12 +1223,14 @@ void HantekDsoControl::run() {
1223
// Start next capture if necessary by leaving out the break statement
1224
1225
if (!this->sampling) break;
1226
-#if __has_cpp_attribute(clang::fallthrough)
1227
-#define FALLTHROUGH [[clang::fallthrough]];
1228
-#elif __has_cpp_attribute(fallthrough)
1229
-#define FALLTHROUGH [[fallthrough]];
1230
-#else
1231
-#define FALLTHROUGH
+#ifdef __has_cpp_attribute
+ #if __has_cpp_attribute(clang::fallthrough)
+ #define FALLTHROUGH [[clang::fallthrough]];
+ #elif __has_cpp_attribute(fallthrough)
+ #define FALLTHROUGH [[fallthrough]];
+ #else
1232
+ #define FALLTHROUGH
1233
+ #endif
1234
#endif
1235
else {
1236
FALLTHROUGH
0 commit comments