From: Lev Stipakov Date: Sat, 13 Aug 2022 21:20:40 +0000 (+0300) Subject: error.c: remove unused crash() function X-Git-Tag: v2.6_beta1~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e1ec038168f22afa584aea79a0323a9fdf45095;p=thirdparty%2Fopenvpn.git error.c: remove unused crash() function This has been added in 2006 and as of now not used. Signed-off-by: Lev Stipakov Acked-by: Gert Doering Message-Id: <20220813212040.113-1-lstipakov@gmail.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24924.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/error.c b/src/openvpn/error.c index 7cd35b170..c8c77358e 100644 --- a/src/openvpn/error.c +++ b/src/openvpn/error.c @@ -808,15 +808,6 @@ msg_flags_string(const unsigned int flags, struct gc_arena *gc) return BSTR(&out); } -#ifdef ENABLE_DEBUG -void -crash(void) -{ - char *null = NULL; - *null = 0; -} -#endif - #ifdef _WIN32 const char * diff --git a/src/openvpn/error.h b/src/openvpn/error.h index 972619fe8..89adb3e6e 100644 --- a/src/openvpn/error.h +++ b/src/openvpn/error.h @@ -220,11 +220,6 @@ __attribute__((__noreturn__)) [!!sizeof(struct { int __error_if_negative : (expr) ? 2 : -1; })] #endif -#ifdef ENABLE_DEBUG -void crash(void); /* force a segfault (debugging only) */ - -#endif - /* Inline functions */ static inline bool