File gcc14.patch of Package gtypist
From: Jan Engelhardt <jengelh@inai.de>
Date: 2024-11-02 12:54:12.376370921 +0100
cursmenu.c:272:33: error: implicit declaration of function ‘utf8len’ [-Wimplicit-function-declaration]
gtypist.c:2208:12: error: lvalue required as left operand of assignment
2208 | ESCDELAY = 1;
---
src/gtypist.c | 2 +-
src/infoview.c | 2 +-
src/utf8.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
Index: gtypist-2.10.1/src/gtypist.c
===================================================================
--- gtypist-2.10.1.orig/src/gtypist.c
+++ gtypist-2.10.1/src/gtypist.c
@@ -1815,7 +1815,7 @@ int main( int argc, char **argv )
// Quick hack to get rid of the escape delays
#ifdef __NCURSES_H
- ESCDELAY = 1;
+ set_escdelay(1);
#endif
/* set up colour pairs if possible */
Index: gtypist-2.10.1/src/infoview.c
===================================================================
--- gtypist-2.10.1.orig/src/infoview.c
+++ gtypist-2.10.1/src/infoview.c
@@ -171,7 +171,7 @@ int do_beginner_infoview()
int numUsableLines, numMsgLines, i, j;
int width, height, xOffset, yOffset;
int firstLine, lastLine, msgLen;
- wchar_t ch;
+ int ch;
msg = strdup(constMsg);
msgLen = strlen( msg );
Index: gtypist-2.10.1/src/utf8.c
===================================================================
--- gtypist-2.10.1.orig/src/utf8.c
+++ gtypist-2.10.1/src/utf8.c
@@ -225,7 +225,7 @@ wchar_t towideupper(wchar_t c)
int get_widech(int* c)
{
- int ch;
+ wint_t ch;
if (isUTF8Locale)
{