Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Tcl_IncrRefCount() macro evaluates to non-void expression

Closed / Fixedc29b92ec2bbb83dd1e7ddb116b09ba0f678d624aCreated 3 years agoUpdated 3 years ago
Descriptionwiki2023-07-29 00:25:07
The Tcl_IncrRefCount() macro definition in tcl.h evaluates to the new reference count. For correctness and consistency with the Tcl_IncrRefCount() function declaration, this should not be permitted. I suggest wrapping the macro’s expression with e.g. ((void)(…)), or do {…;} while(0).
griffinplain2023-09-16 22:03:20
Fixed with [5b9fbbe05ec0cceb]
Log in (anonymous is fine) to add a comment.