mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
This patch was accidentally clang-specific, as __builtin_preserve_enum_value takes 2 arguments in clang versus 3 in GCC. Closes: https://bugs.gentoo.org/960099 Signed-off-by: Violet Purcell <vimproved@inventati.org> Part-of: https://github.com/gentoo/gentoo/pull/43008 Closes: https://github.com/gentoo/gentoo/pull/43008 Closes: https://github.com/gentoo/gentoo/pull/43006 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
17 lines
475 B
Diff
17 lines
475 B
Diff
This patch is made obsolete by https://github.com/sched-ext/scx/commit/7d9b2cc26473526883297df78e8eee3f2e7b6194.
|
|
|
|
--- a/lib/scxtest/overrides.h
|
|
+++ b/lib/scxtest/overrides.h
|
|
@@ -13,7 +13,11 @@
|
|
* that we want to get rid of that belongs here.
|
|
*/
|
|
#define __builtin_preserve_field_info(x,y) 1
|
|
+#ifdef __clang__
|
|
+#define __builtin_preserve_enum_value(x,y) 1
|
|
+#else
|
|
#define __builtin_preserve_enum_value(x,y,z) 1
|
|
+#endif
|
|
|
|
#define bpf_addr_space_cast(var, dst_as, src_as)
|
|
|