From 44649ec5bc84753e3ae7714e698f23304b04e744 Mon Sep 17 00:00:00 2001 Message-Id: <44649ec5bc84753e3ae7714e698f23304b04e744.1715436928.git.mdw@distorted.org.uk> From: Mark Wooding Date: Tue, 9 Aug 2016 21:29:01 +0100 Subject: [PATCH 1/1] vec.c: Explicitly strip constness: we know this one's safe. Organization: Straylight/Edgeware From: Mark Wooding --- vec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vec.c b/vec.c index d091b2c..0383c88 100644 --- a/vec.c +++ b/vec.c @@ -367,7 +367,8 @@ static int vec_new(ClientData cd, Tcl_Interp *ti, Tcl_IncrRefCount(init); if ((v = vec_create(ti, ndim, dim, init)) == 0) goto fail; - Tcl_SetResult(ti, Tcl_GetCommandName(ti, v->c), TCL_STATIC); + Tcl_SetResult(ti, (/*unconst */char *)Tcl_GetCommandName(ti, v->c), + TCL_STATIC); rc = TCL_OK; fail: -- [mdw]