Skip to content
Tcl Source Code History Of Ticket ae62bacc43
Login

History Of Ticket ae62bacc43

Artifacts Associated With Ticket ae62bacc43

  1. Ticket change [026d1d7f66] (rid 260770) by serhiy.storchaka on 2026-10-29 10:07:11:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. 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.
      
    5. foundin initialized to: "8.6.18, 9.0.5, 9.1.1"
    6. login: "serhiy.storchaka"
    7. priority initialized to: "5 Medium"
    8. resolution initialized to: "None"
    9. severity initialized to: "Minor"
    10. status initialized to: "Open"
    11. submitter initialized to: "serhiy.storchaka"
    12. subsystem initialized to: "53. Configuration and Build Tools"
    13. title initialized to:
      -Wformat warnings with MSYS2 UCRT64: TCL_LL_MODIFIER "I64" is checked as gnu_printf
      
    14. type initialized to: "Bug"
  2. Ticket change [894fd5ecb2] (rid 260778) by jan.nijtmans on 2026-10-29 10:54:07:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2461342.9542495371"
    3. closer changed to: "jan.nijtmans"
    4. 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.
      
    5. icomment:
      Good idea!
      
      Thanks! Merged to [14e76b55b7c270a6]. Will also be merged to core-9-0-branch and core-8-6-branch
      
    6. login: "jan.nijtmans"
    7. mimetype: "text/x-fossil-wiki"
    8. resolution changed to: "Fixed"
    9. status changed to: "Closed"
  3. Ticket change [189f9d5b18] (rid 260817) by serhiy.storchaka on 2026-10-29 16:47:51:

    1. 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.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"