]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
compiler: fix fallthrough attribute
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 18 Feb 2021 13:42:39 +0000 (14:42 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 18 Feb 2021 13:42:39 +0000 (14:42 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/compiler.h

index c230e510cea4d25c2082a39608d76f24bb23154b..755c21d5242497f1160d66f86d8176fb2ee86fdc 100644 (file)
@@ -19,7 +19,9 @@
 #endif
 #endif
 
-#ifndef __fallthrough
+#if __GNUC__ >= 7
+#define __fallthrough __attribute__((__fallthrough__))
+#else
 #define __fallthrough /* fall through */
 #endif