|
2026-10-29
| ||
| 16:47 | • Ticket [ae62bacc43] -Wformat warnings with MSYS2 UCRT64: TCL_LL_MODIFIER "I... artifact: 189f9d5b18 user: serhiy.storchaka | |
| 11:15 | Fix [1b96413e8c] and [ae62bacc43]: compiler warnings in UCRT environment check-in: 4d240729d6 user: jan.nijtmans tags: core-8-6-branch | |
| 11:04 | Fix [ae62bacc43]: -Wformat warnings with MSYS2 UCRT64 check-in: 04bfcb67ba user: jan.nijtmans tags: core-9-0-branch | |
| 10:54 | • Closed ticket [ae62bacc43]: -Wformat warnings with MSYS2 UCRT64: TCL_LL_MODIFIER... artifact: 894fd5ecb2 user: jan.nijtmans | |
| 10:46 | Fix [ae62bacc43]: -Wformat warnings with MSYS2 UCRT64 check-in: 14e76b55b7 user: jan.nijtmans tags: trunk, main | |
| 10:07 | • New ticket [ae62bacc43] -Wformat warnings with MSYS2 UCRT64: TCL_LL_MODIFIER &qu... artifact: 026d1d7f66 user: serhiy.storchaka | |
-Wformat warnings with MSYS2 UCRT64: TCL_LL_MODIFIER "I64" is checked as gnu_printf
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=]
With -D__USE_MINGW_ANSI_STDIO=0, which configure sets, tcl.h defines TCL_LL_MODIFIER as "I64", but the UCRT64 headers check the formats as gnu_printf, which does not know I64. 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 printf, which accepts ll, so perhaps "ll" could be used when _UCRT is defined.
4d240729d6Fix [1b96413e8c] and [ae62bacc43]: compiler warnings in UCRT environment check-in2026-10-29 11:15:1704bfcb67baFix [ae62bacc43]: -Wformat warnings with MSYS2 UCRT64 check-in2026-10-29 11:04:2614e76b55b7Fix [ae62bacc43]: -Wformat warnings with MSYS2 UCRT64 check-in2026-10-29 10:46:33
Good idea!
Thanks! Merged to [14e76b55b7c270a6]. Will also be merged to core-9-0-branch and core-8-6-branch
Tk still gets these warnings: generic/tkInt.h undefines TCL_LL_MODIFIER and defines it again with the old condition, so it needs the same !defined(_UCRT). With that, Tk 9.1 builds without warnings with MSYS2 UCRT64.