summaryrefslogtreecommitdiffstats
path: root/generic/tkStubInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-09-01 21:48:23 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-09-01 21:48:23 (GMT)
commit115adb5986725b10e8df98ccc768c3d17d0f5b38 (patch)
treef383bd5c3350d621861c5de9d1e1d4b5888db54d /generic/tkStubInit.c
parent57c2ea5cb4d7f4780a659601b072e584a30b7f65 (diff)
downloadtk-115adb5986725b10e8df98ccc768c3d17d0f5b38.zip
tk-115adb5986725b10e8df98ccc768c3d17d0f5b38.tar.gz
tk-115adb5986725b10e8df98ccc768c3d17d0f5b38.tar.bz2
Don't warn about deprecated declarations in tkStubInit.c, they should be in the stub table anyway
Diffstat (limited to 'generic/tkStubInit.c')
-rw-r--r--generic/tkStubInit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/generic/tkStubInit.c b/generic/tkStubInit.c
index ed71d0f..acea978 100644
--- a/generic/tkStubInit.c
+++ b/generic/tkStubInit.c
@@ -274,6 +274,14 @@ void TkSubtractRegion (TkRegion a, TkRegion b, TkRegion c)
* below should be made in the generic/tk.decls script.
*/
+#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 TkIntStubs tkIntStubs = {