mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:27:45 +00:00
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:
parent
f631f6a2e6
commit
19be842b5b
1 changed files with 2 additions and 1 deletions
|
@ -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)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue