Artifacts Associated With Ticket ae62bacc43
Ticket change [026d1d7f66] (rid 260770) by serhiy.storchaka on 2026-10-29 10:07:11:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
Building with MSYS2 UCRT64 (gcc 16.2.0) gives many <tt>-Wformat</tt> warnings, all on format strings using <tt>TCL_LL_MODIFIER</tt>, <tt>TCL_Z_MODIFIER</tt> or <tt>TCL_T_MODIFIER</tt>: <verbatim> generic/tkBind.c:2985:50: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long long unsigned int' [-Wformat=] generic/tclStrToD.c:5315:44: warning: 'I' flag used with '%x' gnu_printf format [-Wformat=] </verbatim> With <tt>-D__USE_MINGW_ANSI_STDIO=0</tt>, which configure sets, <tt>tcl.h</tt> defines <tt>TCL_LL_MODIFIER</tt> as <tt>"I64"</tt>, but the UCRT64 headers check the formats as <tt>gnu_printf</tt>, which does not know <tt>I64</tt>. The counts: Tcl 11 (8.6), 31 (9.0), 29 (9.1); Tk 52 (8.6), 57 (9.0), 67 (9.1). This was reported in [c975939973], closed as Remind because 8.6 has to support the Windows XP runtime. A UCRT build uses the UCRT <tt>printf</tt>, which accepts <tt>ll</tt>, so perhaps <tt>"ll"</tt> could be used when <tt>_UCRT</tt> is defined.
- foundin initialized to: "8.6.18, 9.0.5, 9.1.1"
- login: "serhiy.storchaka"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "serhiy.storchaka"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to:
-Wformat warnings with MSYS2 UCRT64: TCL_LL_MODIFIER "I64" is checked as gnu_printf
- type initialized to: "Bug"
Ticket change [894fd5ecb2] (rid 260778) by jan.nijtmans on 2026-10-29 10:54:07:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2461342.9542495371"
- closer changed to: "jan.nijtmans"
- comment changed to:
Building with MSYS2 UCRT64 (gcc 16.2.0) gives many <tt>-Wformat</tt> warnings, all on format strings using <tt>TCL_LL_MODIFIER</tt>, <tt>TCL_Z_MODIFIER</tt> or <tt>TCL_T_MODIFIER</tt>: <verbatim> generic/tkBind.c:2985:50: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long long unsigned int' [-Wformat=] generic/tclStrToD.c:5315:44: warning: 'I' flag used with '%x' gnu_printf format [-Wformat=] </verbatim> With <tt>-D__USE_MINGW_ANSI_STDIO=0</tt>, which configure sets, <tt>tcl.h</tt> defines <tt>TCL_LL_MODIFIER</tt> as <tt>"I64"</tt>, but the UCRT64 headers check the formats as <tt>gnu_printf</tt>, which does not know <tt>I64</tt>. The counts: Tcl 11 (8.6), 31 (9.0), 29 (9.1); Tk 52 (8.6), 57 (9.0), 67 (9.1). This was reported in [c975939973], closed as Remind because 8.6 has to support the Windows XP runtime. A UCRT build uses the UCRT <tt>printf</tt>, which accepts <tt>ll</tt>, so perhaps <tt>"ll"</tt> could be used when <tt>_UCRT</tt> is defined.
- icomment:
Good idea! Thanks! Merged to [14e76b55b7c270a6]. Will also be merged to core-9-0-branch and core-8-6-branch
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [189f9d5b18] (rid 260817) by serhiy.storchaka on 2026-10-29 16:47:51:
- icomment:
Tk still gets these warnings: <tt>generic/tkInt.h</tt> undefines <tt>TCL_LL_MODIFIER</tt> and defines it again with the old condition, so it needs the same <tt>!defined(_UCRT)</tt>. With that, Tk 9.1 builds without warnings with MSYS2 UCRT64.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- icomment: