https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116232
Bug ID: 116232 Summary: Problem with printf Product: gcc Version: 11.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: lukaszcz18 at wp dot pl Target Milestone: --- I use gcc 11.5.0 and have strange messages https://github.com/brechtsanders/winlibs_mingw/releases/download/11.5.0posix-12.0.0-msvcrt-r1/winlibs-x86_64-posix-seh-gcc-11.5.0-mingw-w64msvcrt-12.0.0-r1.zip ``` common.c: In function 'xavs2_malloc': common.c:255:42: warning: unknown conversion type character 'z' in format [-Wformat=] 255 | fprintf(stderr, "malloc of size %zu failed\n", i_size); | ^ common.c:255:25: warning: too many arguments for format [-Wformat-extra-args] 255 | fprintf(stderr, "malloc of size %zu failed\n", i_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ parameters.c: In function 'xavs2_encoder_opt_set': parameters.c:404:23: warning: '%d' directive writing between 1 and 10 bytes into a region of size 4 [-Wformat-overflow=] 404 | sprintf(str, "%d", ++i); | ^~ parameters.c:404:22: note: directive argument in the range [2, 2147483647] 404 | sprintf(str, "%d", ++i); | ^~~~ parameters.c:404:9: note: 'sprintf' output between 2 and 11 bytes into a destination of size 4 404 | sprintf(str, "%d", ++i); | ^~~~~~~~~~~~~~~~~~~~~~~ ``` In version 11.3.1 these errors were not present http://msystem.waw.pl/x265/mingw-gcc1131-20221227.7z Why is winlibs gcc 11.5.0 working slowly? What it depends on?