mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xen/compiler: Clang 14 and later understands attribute((error))
Adjust the ifdefary for `nocall`. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
43e1387130
commit
de6fda801c
1 file changed
+1
-1
@@ -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
|
||||
|
||||