mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
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:
@@ -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, \
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user