diff options
Diffstat (limited to 'tests/objc.exp')
-rw-r--r-- | tests/objc.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/objc.exp b/tests/objc.exp index 2c3374b..379e668 100644 --- a/tests/objc.exp +++ b/tests/objc.exp @@ -84,6 +84,11 @@ hash (register const char *str, register size_t len) { default: hval += asso_values[(unsigned char)str[2]]; +#if defined __cplusplus && __cplusplus >= 201703L + [[fallthrough]]; +#elif defined __GNUC__ && __GNUC__ >= 7 + __attribute__ ((__fallthrough__)); +#endif /*FALLTHROUGH*/ case 2: case 1: |