summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2018-05-19 11:26:13 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2018-05-19 11:26:13 (GMT)
commit4523d8df2c410219ea470d653d5851701fbc2ed2 (patch)
treeda38f60b93402c4e18eed53bb898b481671f00c4
parent4f1ea4779be85d8837f3a133b52d3b5aa9e53fda (diff)
downloadtcl-4523d8df2c410219ea470d653d5851701fbc2ed2.zip
tcl-4523d8df2c410219ea470d653d5851701fbc2ed2.tar.gz
tcl-4523d8df2c410219ea470d653d5851701fbc2ed2.tar.bz2
Disable many warnings that are pointless in the stub library. Yes, it accesses deprecated fields, we know because we deprecated them.
-rw-r--r--generic/tclStubInit.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c
index be37bc0..5057b05 100644
--- a/generic/tclStubInit.c
+++ b/generic/tclStubInit.c
@@ -454,6 +454,15 @@ tellOld(
MODULE_SCOPE const TclStubs tclStubs;
MODULE_SCOPE const TclTomMathStubs tclTomMathStubs;
+#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
+
/* !BEGIN!: Do not edit below this line. */
static const TclIntStubs tclIntStubs = {