From 9a4879b48f9ca1a39aa4eaa67bccc171cd5bca35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Thu, 4 Aug 2022 21:09:44 +0200 Subject: Please Clang 15 CRT.c:1015:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] void CRT_done() { ^ void --- CRT.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'CRT.c') diff --git a/CRT.c b/CRT.c index c8935add..f010658b 100644 --- a/CRT.c +++ b/CRT.c @@ -1012,7 +1012,7 @@ IGNORE_WCASTQUAL_END CRT_degreeSign = initDegreeSign(); } -void CRT_done() { +void CRT_done(void) { int resetColor = CRT_colors ? CRT_colors[RESET_COLOR] : CRT_colorSchemes[COLORSCHEME_DEFAULT][RESET_COLOR]; attron(resetColor); @@ -1033,7 +1033,7 @@ void CRT_fatalError(const char* note) { exit(2); } -int CRT_readKey() { +int CRT_readKey(void) { nocbreak(); cbreak(); nodelay(stdscr, FALSE); @@ -1042,13 +1042,13 @@ int CRT_readKey() { return ret; } -void CRT_disableDelay() { +void CRT_disableDelay(void) { nocbreak(); cbreak(); nodelay(stdscr, TRUE); } -void CRT_enableDelay() { +void CRT_enableDelay(void) { halfdelay(*CRT_delay); } -- cgit v1.2.3