aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/test/test.h
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/test/test.h')
-rw-r--r--libarchive/test/test.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libarchive/test/test.h b/libarchive/test/test.h
index fd679f5f2ffe..c0a0c0d87196 100644
--- a/libarchive/test/test.h
+++ b/libarchive/test/test.h
@@ -33,4 +33,10 @@
#define EXTRA_ERRNO(x) archive_errno((struct archive *)(x))
#define EXTRA_VERSION archive_version_details()
+#if defined(__GNUC__) && (__GNUC__ >= 7)
+#define __LA_FALLTHROUGH __attribute__((fallthrough))
+#else
+#define __LA_FALLTHROUGH
+#endif
+
#include "test_common.h"