From 4523d8df2c410219ea470d653d5851701fbc2ed2 Mon Sep 17 00:00:00 2001 From: dkf Date: Sat, 19 May 2018 11:26:13 +0000 Subject: Disable many warnings that are pointless in the stub library. Yes, it accesses deprecated fields, we know because we deprecated them. --- generic/tclStubInit.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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 = { -- cgit v0.12