From: Gert Doering Date: Thu, 15 Jan 2026 10:25:47 +0100 Message-ID: <20260115092552.25011-1-gert@...1296...> In-Reply-To: References: MIME-Version: 1.0 Subject: [Openvpn-devel] [PATCH v1] error: Remove our implementation of static_assert List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: openvpn-devel@lists.sourceforge.net From: Frank Lichtenheld It is C11, so it should be present in all our compilers. Change-Id: I9cb14b9f44409ec5c78044ddb216a2b4dced0f9b Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1471 --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1471 This mail reflects revision 1 of this Change. Acked-by according to Gerrit (reflected above): Gert Doering diff --git a/src/openvpn/error.h b/src/openvpn/error.h index 44572b4..1198994 100644 --- a/src/openvpn/error.h +++ b/src/openvpn/error.h @@ -245,14 +245,6 @@ #endif ; -/* Poor-man's static_assert() for when not supplied by assert.h, taken from - * Linux's sys/cdefs.h under GPLv2 */ -#ifndef static_assert -#define static_assert(expr, diagnostic) \ - extern int (*__OpenVPN_static_assert_function( \ - void))[!!sizeof(struct { int __error_if_negative : (expr) ? 2 : -1; })] -#endif - /* Inline functions */ static inline bool