JBR-1668: minor fixes - temporary fix for compilation issue SystemHotkey.m:74:29: error: format string is not a string literal

This commit is contained in:
Vitaly Provodin
2024-03-24 05:38:39 +07:00
committed by jbrbot
parent a72cf6bde0
commit 8136820986

View File

@@ -71,7 +71,10 @@ void plog(int logLevel, const char *formatMsg, ...) {
va_start(args, formatMsg);
const int bufSize = 512;
char buf[bufSize];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wformat-nonliteral"
vsnprintf(buf, bufSize, formatMsg, args);
#pragma clang diagnostic pop
va_end(args);
JNIEnv* env;