summaryrefslogtreecommitdiffstats
path: root/CRT.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-09-17 22:27:33 +0200
committercgzones <cgzones@googlemail.com>2020-10-03 19:04:27 +0200
commitd69585b82abfdaede9e8c358982a4953c432e8d2 (patch)
tree7b087349e21cd51dab789bc44da73272d336937c /CRT.c
parentb7f63292e5394ca7eee2dc5d14d0d1244db61c17 (diff)
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]
Diffstat (limited to 'CRT.c')
-rw-r--r--CRT.c4
1 files changed, 2 insertions, 2 deletions
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();

© 2014-2024 Faster IT GmbH | imprint | privacy policy