From 922294abb4c0bc72b24d8526d625110d73fa1b5a Mon Sep 17 00:00:00 2001 From: Greg Steuck Date: Sun, 4 Sep 2022 09:11:23 +0200 Subject: pkg/csource: inline void* cast into generated code The previous indirection via conditional macros in platform specific places was needless obfuscation. --- executor/common_fuchsia.h | 4 ---- executor/common_linux.h | 3 --- 2 files changed, 7 deletions(-) (limited to 'executor') diff --git a/executor/common_fuchsia.h b/executor/common_fuchsia.h index cb29f715e..19bdd280c 100644 --- a/executor/common_fuchsia.h +++ b/executor/common_fuchsia.h @@ -272,7 +272,3 @@ static int do_sandbox_none(void) return 0; } #endif - -// Ugly way to work around gcc's "error: function called through a non-compatible type". -// The macro is used in generated C code. -#define CAST(f) ({void* p = (void*)f; p; }) diff --git a/executor/common_linux.h b/executor/common_linux.h index 21bde3bb6..0cc94555f 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -4857,9 +4857,6 @@ static void setup_802154() #if GOARCH_s390x #include -// Ugly way to work around gcc's "error: function called through a non-compatible type". -// The macro is used in generated C code. -#define CAST(f) ({void* p = (void*)f; p; }) #endif #if SYZ_EXECUTOR || __NR_syz_fuse_handle_req -- cgit mrf-deployment