cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1471?usp=email )
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 <[email protected]> Acked-by: Gert Doering <[email protected]> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1471 Message-Id: <[email protected]> URL: https://sourceforge.net/p/openvpn/mailman/message/59283672/ Signed-off-by: Gert Doering <[email protected]> --- 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=email To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I9cb14b9f44409ec5c78044ddb216a2b4dced0f9b Gerrit-Change-Number: 1471 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld <[email protected]> Gerrit-Reviewer: cron2 <[email protected]> Gerrit-Reviewer: plaisthos <[email protected]> Gerrit-CC: openvpn-devel <[email protected]>
_______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
