[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] xen/compiler: Clang 14 and later understands attribute((error))
commit de6fda801cc2a0db6a52697fe49e60e1a9f7f322 Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Thu Feb 23 12:18:57 2023 +0000 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Fri Feb 24 17:44:29 2023 +0000 xen/compiler: Clang 14 and later understands attribute((error)) Adjust the ifdefary for `nocall`. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/include/xen/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/xen/compiler.h b/xen/include/xen/compiler.h index a563130334..7d7ae2e5e4 100644 --- a/xen/include/xen/compiler.h +++ b/xen/include/xen/compiler.h @@ -31,7 +31,7 @@ #define __weak __attribute__((__weak__)) -#if !defined(__clang__) +#if !CONFIG_CC_IS_CLANG || CONFIG_CLANG_VERSION >= 140000 # define nocall __attribute__((__error__("Nonstandard ABI"))) #else # define nocall -- generated by git-patchbot for /home/xen/git/xen.git#master
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |