summaryrefslogtreecommitdiffstats
path: root/CRT.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2022-08-04 21:09:44 +0200
committercgzones <cgzones@googlemail.com>2022-08-09 20:30:05 +0200
commit9a4879b48f9ca1a39aa4eaa67bccc171cd5bca35 (patch)
treeea05b3a733209b83bcebc40a8f8af120ac8ebfca /CRT.c
parent3e1908b80ab214b7b449b49183d1bd5d39c174e3 (diff)
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
Diffstat (limited to 'CRT.c')
-rw-r--r--CRT.c8
1 files changed, 4 insertions, 4 deletions
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);
}

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