Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2025-12-07
21:38 • Closed ticket [cd0d28eab9]: regexec.c: GCC -Wtype-limits warning plus 7 othe... artifact: b08043b856 user: jan.nijtmans
20:51
Fix [cd0d28eab9]: regexec.c: GCC -Wtype-limits warning check-in: 6bbec4425e user: jan.nijtmans tags: core-9-0-branch
20:37
Fix [cd0d28eab9]: regexec.c: GCC -Wtype-limits warning check-in: 5225e3ef0a user: jan.nijtmans tags: trunk, main
2025-12-05
05:23 • New ticket [cd0d28eab9] regexec.c: GCC -Wtype-limits warning. artifact: be3876c9f1 user: chrstphrchvz

regexec.c: GCC -Wtype-limits warning

Closed / Fixedcd0d28eab9ae30c4dca4598bc92babd5f61ae991Created 363 days agoUpdated 360 days ago
Descriptionmarkdown2025-12-05 05:23:08

.ntree (regguts.h:399) was changed from int to size_t. Recent GCC says:

tcl90/generic/regexec.c:233:24: warning: comparison of unsigned expression in ‘>= 0’ is always true [-Wtype-limits]                                                          233 |     assert(v->g->ntree >= 0);
    |                        ^~
Referenced by2
jan.nijtmanswiki2025-12-07 21:38:13

Fixed [here]. Thanks for the report!

Log in (anonymous is fine) to add a comment.