[lxc-devel] [lxc/master] compiler: __attribute__((noreturn)) on bionic

brauner on Github lxc-bot at linuxcontainers.org
Sun Sep 23 18:17:36 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180923/a584a80a/attachment.bin>
-------------- next part --------------
From 534aaf45d2d2852a5169b51bdeea59088c4ea65e Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Sun, 23 Sep 2018 20:16:12 +0200
Subject: [PATCH] compiler: __attribute__((noreturn)) on bionic

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 src/lxc/compiler.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/compiler.h b/src/lxc/compiler.h
index 6916fe9e7..76a7b733d 100644
--- a/src/lxc/compiler.h
+++ b/src/lxc/compiler.h
@@ -39,7 +39,7 @@
 #endif
 
 #ifndef _noreturn_
-#if __STDC_VERSION__ >= 201112L
+#if __STDC_VERSION__ >= 201112L && !IS_BIONIC
 #define __noreturn _Noreturn
 #else
 #define __noreturn __attribute__((noreturn))


More information about the lxc-devel mailing list