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 ---- 1 file changed, 4 deletions(-) (limited to 'executor/common_fuchsia.h') 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; }) -- cgit mrf-deployment