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.
This commit is contained in:
Andreas Kling 2020-04-07 17:30:16 +02:00
parent f631f6a2e6
commit 19be842b5b
Notes: sideshowbarker 2024-07-19 07:49:49 +09:00

View file

@ -36,7 +36,8 @@
#define ARCH(arch) (defined(AK_ARCH_##arch) && AK_ARCH_##arch) #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 CONSUMABLE(initial_state) __attribute__((consumable(initial_state)))
# define CALLABLE_WHEN(...) __attribute__((callable_when(__VA_ARGS__))) # define CALLABLE_WHEN(...) __attribute__((callable_when(__VA_ARGS__)))
# define SET_TYPESTATE(state) __attribute__((set_typestate(state))) # define SET_TYPESTATE(state) __attribute__((set_typestate(state)))