minor: Fix fallthrough attribute for other compilers

This commit is contained in:
Christian W. Zuckschwerdt
2021-11-13 22:40:49 +01:00
parent 4037f8e3f7
commit a7d4ba5e7f

View File

@@ -231,8 +231,10 @@ int atoi_time(char const *str, char const *error_hint)
break;
}
// intentional fallthrough
#if (defined(__GNUC__) || defined(__clang__)) && __has_attribute(fallthrough)
#if defined(__GNUC__) || defined(__clang__)
#if __has_attribute(fallthrough)
__attribute__((fallthrough));
#endif
#endif
case ':':
++colons;