From d69585b82abfdaede9e8c358982a4953c432e8d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Thu, 17 Sep 2020 22:27:33 +0200 Subject: Resolve DEBUG compilation issues Use NDEBUG conditional instead of DEBUG. Do not call static functions in extern inline ones. Vector.c:67:11: error: static function 'Vector_isConsistent' is used in an inline function with external linkage [-Werror,-Wstatic-in-inline] --- CRT.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CRT.c') diff --git a/CRT.c b/CRT.c index 69372298..374e1721 100644 --- a/CRT.c +++ b/CRT.c @@ -631,13 +631,13 @@ void CRT_init(int delay, int colorScheme, bool allowUnicode) { define_key(sequence, KEY_ALT('A' + (c - 'a'))); } } -#ifndef DEBUG + struct sigaction act; sigemptyset (&act.sa_mask); act.sa_flags = (int)SA_RESETHAND; act.sa_handler = CRT_handleSIGSEGV; sigaction (SIGSEGV, &act, &old_sigsegv_handler); -#endif + signal(SIGTERM, CRT_handleSIGTERM); signal(SIGQUIT, CRT_handleSIGTERM); use_default_colors(); -- cgit v1.2.3