From 77f9161a6fb971a88a6159998526be45b8ed6506 Mon Sep 17 00:00:00 2001 From: griffin Date: Sat, 16 Sep 2023 22:00:55 +0000 Subject: Fix bug [c29b92ec2bbb] - Tcl_IncrRefCount() should return (void) --- generic/tcl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generic/tcl.h b/generic/tcl.h index 1f8c32b..7d7e6aa 100644 --- a/generic/tcl.h +++ b/generic/tcl.h @@ -2513,7 +2513,7 @@ static inline void TclBounceRefCount(Tcl_Obj* objPtr, const char* fn, int line) #else # undef Tcl_IncrRefCount # define Tcl_IncrRefCount(objPtr) \ - ++(objPtr)->refCount + ((void)++(objPtr)->refCount) /* * Use do/while0 idiom for optimum correctness without compiler warnings. * https://wiki.c2.com/?TrivialDoWhileLoop -- cgit v0.12