From: Dmitry Shachnev Date: Fri, 13 Sep 2024 20:20:25 +0300 Subject: Fix build with GCC 14 Bug-Debian: https://bugs.debian.org/1074980 --- data/t2s-file.c | 6 +++--- win-gtab.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/t2s-file.c b/data/t2s-file.c index 832007b..64974b8 100644 --- a/data/t2s-file.c +++ b/data/t2s-file.c @@ -8,14 +8,14 @@ T2S t2s[3000],s2t[3000]; int t2sn; -int qcmp(T2S *aa, T2S *bb) +int qcmp(const void *aa, const void *bb) { #if 0 int64_t a = aa->a; int64_t b = bb->a; #else - u_int a = aa->a; - u_int b = bb->a; + u_int a = ((const T2S *)aa)->a; + u_int b = ((const T2S *)bb)->a; #endif if (a > b) diff --git a/win-gtab.cpp b/win-gtab.cpp index 7b4799b..efb50f0 100644 --- a/win-gtab.cpp +++ b/win-gtab.cpp @@ -640,7 +640,7 @@ void create_win_gtab_gui_simple() } label_key_codes = gtk_label_new(NULL); - gtk_label_set_text(label_key_codes, str_key_codes); + gtk_label_set_text(GTK_LABEL(label_key_codes), str_key_codes); #if 0 gtk_label_set_selectable(GTK_LABEL(label_key_codes), TRUE);