clang: don't define nocall
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 29 May 2020 15:52:06 +0000 (17:52 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 29 May 2020 15:52:06 +0000 (17:52 +0200)
commit9164e93203979755bfa8bf81a1e8e9f8125d4414
tree329f9b8480ada34369c3e979b0be8a8f3cfa48b5
parent669d48afc4ec2215ea82e7174bf77aa8503ea20b
clang: don't define nocall

Clang doesn't support attribute error, and the possible equivalents
like diagnose_if don't seem to work well in this case as they trigger
when when the function is not called (just by being used by the
APPEND_CALL macro).

Define nocall to a noop on clang until a proper solution can be found.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Julien Grall <jgrall@amazon.com>
[jb: error -> __error__]
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/include/xen/compiler.h