summaryrefslogtreecommitdiffstats
path: root/generic/tkStubInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-11 15:11:53 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-11 15:11:53 (GMT)
commitb732c4b500727e5b3b0b00a869c8316516f1d7e3 (patch)
treeeea8fb51f72a8dba827a07aa139041679257ecb5 /generic/tkStubInit.c
parent908da12349949cd077caa0cf8de06f88c23c656f (diff)
downloadtk-b732c4b500727e5b3b0b00a869c8316516f1d7e3.zip
tk-b732c4b500727e5b3b0b00a869c8316516f1d7e3.tar.gz
tk-b732c4b500727e5b3b0b00a869c8316516f1d7e3.tar.bz2
Don't mind XKeycodeToKeysym() deprecation warning any more. Some MacOS code cleanup (e.g. no "register" keyword any more)
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 6d91fa7..8152dfe 100644
--- a/generic/tkStubInit.c
+++ b/generic/tkStubInit.c
@@ -245,6 +245,14 @@ int 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 = {