Skip to content

Commit

Permalink
Fix callback type
Browse files Browse the repository at this point in the history
With -Wincompatible-pointer-types gcc 14 complains.
  • Loading branch information
sthibaul committed Jul 7, 2024
1 parent d153472 commit 3ccf225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/Jliblouisutdml.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 3ccf225

Please sign in to comment.