Artifacts Associated With Ticket 9c1dc88f86e8766b
Ticket change [efaabd7fca] (rid 199332) by sl1200mk2 on 2022-03-17 16:27:34:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Hi Jan, when compiling latest core-8-branch on Windows (using gcc) I got the following warnings: C:/Users/nico/dev/dlight/win64/tcltk/tcl-9f61609437/generic/tclLink.c: In function 'LinkTraceProc': C:/Users/nico/dev/dlight/win64/tcltk/tcl-9f61609437/generic/tclLink.c:943:41: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 943 | ((value) >= (lowerLimit) && (value) <= (upperLimit)) | ^~ C:/Users/nico/dev/dlight/win64/tcltk/tcl-9f61609437/generic/tclLink.c:1120:29: note: in expansion of macro 'InRange' 1120 | || !InRange(0, valueInt, USHRT_MAX)) { | ^~~~~~~ C:/Users/nico/dev/dlight/win64/tcltk/tcl-9f61609437/generic/tclLink.c:943:41: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 943 | ((value) >= (lowerLimit) && (value) <= (upperLimit)) | ^~ C:/Users/nico/dev/dlight/win64/tcltk/tcl-9f61609437/generic/tclLink.c:1130:25: note: in expansion of macro 'InRange' 1130 | || !InRange(0, valueInt, USHRT_MAX)) { | ^~~~~~~ best regards, Nicolas - foundin initialized to: "core-8-branch"
- is_private initialized to: "0"
- login: "sl1200mk2"
- priority initialized to: "5 Medium"
- private_contact initialized to: "10e302b1a1ae78d60a0878d87bdb4b5f874b815e"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "sl1200mk2"
- subsystem initialized to: "69. Other"
- title initialized to:
warning about different signedness when compile TCL on Windows
- type initialized to: "Support"
Ticket change [8261e90aaa] (rid 199560) by jan.nijtmans on 2022-03-22 20:21:27:
- icomment:
I cannot reproduce this. How is USHRT_MAX defined in your compiler? It should be something like 0xffff, which is an integer.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [49fed9d460] (rid 199661) by sl1200mk2 on 2022-03-25 14:56:17:
- icomment:
Hi Jan, sorry for the late reply... not here, here in limits.h USHRT_MAX is defined as #define USHRT_MAX 0xffffU this is gcc 11.2.0 (Rev10, Built by MSYS2 project) ++
- login: "sl1200mk2"
- mimetype: "text/plain"
- icomment:
Ticket change [122b513a98] (rid 199665) by jan.nijtmans on 2022-03-25 15:34:44:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2459664.14912632"
- closer changed to: "jan.nijtmans"
- icomment:
Even though I think this is a bug in this gcc build, fixed now. Since the same could happen with UINT_MAX and UCHAR_MAX, added a type-cast there too. Thanks!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [9e904fdaae] (rid 199668) by sl1200mk2 on 2022-03-25 15:42:04:
- closedate changed to: "2459664.15421789"
- closer changed to: "sl1200mk2"
- icomment:
it's defined as follow: #define UCHAR_MAX 0xff #define UINT_MAX 0xffffffffU #define ULONG_MAX 0xffffffffUL #define ULLONG_MAX 0xffffffffffffffffull ++
- login: "sl1200mk2"
- mimetype: "text/plain"