From 251211e7146a1933fbd056fae33d61ec9c3bd327 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Sun, 30 Apr 2023 12:02:38 +0000 Subject: Don't test compatibility macro's when TCL_NO_DEPRECATED is defined: this is expected to fail --- generic/tclTest.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/generic/tclTest.c b/generic/tclTest.c index 5f8d1f5..d615d8b 100644 --- a/generic/tclTest.c +++ b/generic/tclTest.c @@ -5678,7 +5678,11 @@ TestbytestringObjCmd( Tcl_Obj *const objv[]) /* The argument objects. */ { struct { +#if !defined(TCL_NO_DEPRECATED) int n; /* On purpose, not Tcl_Size, in order to demonstrate what happens */ +#else + Tcl_Size n; +#endif int m; /* This variable should not be overwritten */ } x = {0, 1}; const char *p; -- cgit v0.12