JBR-5693 Debug build failure in main branch

Corrected printf format and muted unused-function option for keycode_cache.c

(cherry picked from commit 87a01c930d)
This commit is contained in:
Alexey Ushakov
2023-06-05 21:55:45 +02:00
committed by jbrbot
parent 45b4f914e7
commit 398bd073a0
2 changed files with 2 additions and 1 deletions

View File

@@ -309,6 +309,7 @@ ifeq ($(call isTargetOs, windows macosx)+$(ENABLE_HEADLESS_ONLY), false+false)
DISABLED_WARNINGS_gcc_GLXSurfaceData.c := unused-function, \
DISABLED_WARNINGS_gcc_gtk3_interface.c := parentheses type-limits \
unused-function, \
DISABLED_WARNINGS_gcc_keycode_cache.c := unused-function, \
DISABLED_WARNINGS_gcc_OGLBufImgOps.c := format-nonliteral, \
DISABLED_WARNINGS_gcc_OGLPaints.c := format-nonliteral, \
DISABLED_WARNINGS_gcc_screencast_pipewire.c := undef, \

View File

@@ -57,7 +57,7 @@ dump_keycode_cache(const KeyCodeCache* cache) {
fprintf(stderr, "0x%02x --", i);
for(int j = 0; j < cache->syms_per_code; j++) {
const int sym_index = (i - cache->min_code)*cache->syms_per_code + j;
fprintf(stderr, "%04d - ", cache->symbols[sym_index]);
fprintf(stderr, "%04lu - ", cache->symbols[sym_index]);
}
fprintf(stderr, "\n");
}