summaryrefslogtreecommitdiffstats
path: root/generic/tclTestObj.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-01-20 14:35:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-01-20 14:35:25 (GMT)
commita3906f4953e88e646a9034649dbeb6db3624c99b (patch)
tree9b5ee0caab2b0e84b21d97723cd416416979a1db /generic/tclTestObj.c
parent12d3b15f307754ea15cceabd761e0f60346e9cc4 (diff)
downloadtcl-a3906f4953e88e646a9034649dbeb6db3624c99b.zip
tcl-a3906f4953e88e646a9034649dbeb6db3624c99b.tar.gz
tcl-a3906f4953e88e646a9034649dbeb6db3624c99b.tar.bz2
Don't deprecate Tcl_NewUnicodeObj/Tcl_SetUnicodeObj/Tcl_GetUnicodeFromObj, since that's not according to TIP #542. (Those are only deprecated when using TCL_UTF_MAX=4, not in the general case)
Diffstat (limited to 'generic/tclTestObj.c')
-rw-r--r--generic/tclTestObj.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/generic/tclTestObj.c b/generic/tclTestObj.c
index e616433..ced860e 100644
--- a/generic/tclTestObj.c
+++ b/generic/tclTestObj.c
@@ -25,6 +25,14 @@
#endif
#include "tclStringRep.h"
+#ifdef __GNUC__
+/*
+ * The rest of this file shouldn't warn about deprecated functions; they're
+ * there because we intend them to be so and know that this file is OK to
+ * touch those fields.
+ */
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
/*
* Forward declarations for functions defined later in this file: