From: "cron2 (Code Review)" Date: Thu, 15 Jan 2026 10:06:42 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <98c277df4dba8702b14bf4faefdc7a463ccff19b-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Na7VisraqH0="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: error: Remove our implementation of static_assert List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: plaisthos , openvpn-devel --Na7VisraqH0= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/14= 71?usp=3Demail ) Change subject: error: Remove our implementation of static_assert ...................................................................... error: Remove our implementation of static_assert 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 Message-Id: <20260115092552.25011-1-gert@...1296...> URL: https://sourceforge.net/p/openvpn/mailman/message/59283672/ Signed-off-by: Gert Doering --- M src/openvpn/error.h 1 file changed, 0 insertions(+), 8 deletions(-) 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 -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1471?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: merged Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I9cb14b9f44409ec5c78044ddb216a2b4dced0f9b Gerrit-Change-Number: 1471 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --Na7VisraqH0= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 sub= mitted this change.

View Change

error: Remove our implementation of static_asser=
t

It is C11, so it should be present in all our
compilers.
Change-Id: I9cb14b9f44409ec5c78044ddb216a2b4dced0f9b
Signed-off-by: Fra= nk Lichtenheld <frank@...2641...>
Acked-by: Gert Doering <gert@= ...1296...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1471Message-Id: <20260115092552.25011-1-gert@...1296...>
URL: https:= //sourceforge.net/p/openvpn/mailman/message/59283672/
Signed-off-by: Ger= t Doering <gert@...1296...>
---
M src/openvpn/error.h
1 file= changed, 0 insertions(+), 8 deletions(-)

diff --git a/src/openvpn/error.h b/src/openvpn/error.h
i= ndex 44572b4..1198994 100644
--- a/src/openvpn/error.h
+++ b/src/openvpn/error.h
@@ -245,14 +245,6 @@<= /span>
#endif
;

= -/* Poor-man's static_assert(= ) for when not supplied by assert.h, taken from
- * Linux's sys/cdefs.h under GPLv2 */<= br>-#ifndef static_assert<= br>-#define static_assert(expr, d= iagnostic) \
- extern int (*__OpenVPN_static_assert_function( \
- void))[!!sizeof(struct { int __err= or_if_negative : (expr) ? 2 : -1; })]
-#endif
= -
/* Inline functions */

static inline bool


To view, visit change 1471= . To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I9cb14b9f44409ec5c78044ddb21= 6a2b4dced0f9b
Gerrit-Change-Number: 1471
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --Na7VisraqH0=--