From 3ccf225cf1a3201c1794296f590dc8a5bd225ef8 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 7 Jul 2024 20:33:01 +0200 Subject: [PATCH] Fix callback type With -Wincompatible-pointer-types gcc 14 complains. --- java/Jliblouisutdml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/Jliblouisutdml.c b/java/Jliblouisutdml.c index cae00ec7..41b2d06e 100644 --- a/java/Jliblouisutdml.c +++ b/java/Jliblouisutdml.c @@ -703,7 +703,7 @@ JNIEXPORT void JNICALL Java_org_liblouis_LibLouis_setLogLevel } static jobject louLogCBFunc; -static void javaLouLogCallback(int level, const char *message) +static void javaLouLogCallback(logLevels level, const char *message) { execJavaLogCallback(louLogCBFunc, level, message); } @@ -1340,7 +1340,7 @@ JNIEXPORT void JNICALL Java_org_liblouis_LibLouisUTDML_logEnd } static jobject lbuLogCBFunc; -static void javaLbuLogCallbackFunc(int level, const char *message) +static void javaLbuLogCallbackFunc(logLevels level, const char *message) { execJavaLogCallback(lbuLogCBFunc, level, message); }