From 19be842b5b0f0a15cd5adfb1e1020391d48f7bf1 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 7 Apr 2020 17:30:16 +0200 Subject: [PATCH] AK: Disable the consumable annotation checking to fix Clang build Clang keeps whining that NonnullFooPtrs are in "unknown" state and I'm not sure how to resolve that right now. Disable the checking until we can figure it out. --- AK/Platform.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AK/Platform.h b/AK/Platform.h index 4ae9e080da..6763f641c2 100644 --- a/AK/Platform.h +++ b/AK/Platform.h @@ -36,7 +36,8 @@ #define ARCH(arch) (defined(AK_ARCH_##arch) && AK_ARCH_##arch) -#ifdef __clang__ +// FIXME: Re-enable this when we can figure out why Clang gets confused about "unknown" +#if 0 # define CONSUMABLE(initial_state) __attribute__((consumable(initial_state))) # define CALLABLE_WHEN(...) __attribute__((callable_when(__VA_ARGS__))) # define SET_TYPESTATE(state) __attribute__((set_typestate(state)))