Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2024-08-20
20:45
Merge [5b9fbbe05ec0cceb], Fix bug [c29b92ec2bbb] - Tcl_IncrRefCount() should return (void). check-in: be22dbf0b7 user: pooryorick tags: unchained, INCOMPATIBLE_LICENSE
2023-09-16
22:03 • Closed ticket [c29b92ec2b]: Tcl_IncrRefCount() macro evaluates to non-void expre... artifact: 7574197910 user: griffin
22:00
Fix bug [c29b92ec2bbb] - Tcl_IncrRefCount() should return (void) check-in: 5b9fbbe05e user: griffin tags: trunk, main
2023-07-29
00:25 • New ticket [c29b92ec2b] Tcl_IncrRefCount() macro evaluates to non-void expressio... artifact: 5fde80409a user: chrstphrchvz

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.