fix DEPRECATED UNUSED
All checks were successful
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 1m25s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 1m54s
linux-arm-gcc / linux-gcc-armhf (push) Successful in 2m6s
linux-x64-gcc / linux-gcc (Release) (push) Successful in 2m29s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Successful in 2m56s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 3m34s
All checks were successful
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 1m25s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 1m54s
linux-arm-gcc / linux-gcc-armhf (push) Successful in 2m6s
linux-x64-gcc / linux-gcc (Release) (push) Successful in 2m29s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Successful in 2m56s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 3m34s
This commit is contained in:
parent
d39278d898
commit
f52d34a312
@ -3,8 +3,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
// #define SLED_DEPRECATED __attribute__((deprecated))
|
// #define SLED_DEPRECATED __attribute__((deprecated))
|
||||||
#define SLED_NODISCARD [[nodiscard]]
|
|
||||||
#define SLED_DEPRECATED [[deprecated]]
|
|
||||||
|
|
||||||
#if defined(__clang__) && (!defined(SWIG))
|
#if defined(__clang__) && (!defined(SWIG))
|
||||||
#define SLED_THREAD_ANNOTATION_ATTRIBUTE__(x) __attribute__((x))
|
#define SLED_THREAD_ANNOTATION_ATTRIBUTE__(x) __attribute__((x))
|
||||||
@ -12,6 +10,9 @@
|
|||||||
#define SLED_THREAD_ANNOTATION_ATTRIBUTE__(x)// no-op
|
#define SLED_THREAD_ANNOTATION_ATTRIBUTE__(x)// no-op
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define SLED_NODISCARD SLED_THREAD_ANNOTATION_ATTRIBUTE__(__warn_unused_result__)
|
||||||
|
#define SLED_DEPRECATED SLED_THREAD_ANNOTATION_ATTRIBUTE__(deprecated)
|
||||||
|
|
||||||
#define SLED_UNUSED(x) (void) (x)
|
#define SLED_UNUSED(x) (void) (x)
|
||||||
|
|
||||||
#define SLED_CAPABILITY(x) SLED_THREAD_ANNOTATION_ATTRIBUTE__(capability(x))
|
#define SLED_CAPABILITY(x) SLED_THREAD_ANNOTATION_ATTRIBUTE__(capability(x))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user