summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-07-02 14:59:40 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-07-02 14:59:40 (GMT)
commit0093962104e9c604b7d299866aebcde3349e4e61 (patch)
tree0d8bcda82059bfee15f97f2b8c785786cf3903bc /generic
parentafebc679a1637210fafc9315203027237bab8d0d (diff)
downloadtk-0093962104e9c604b7d299866aebcde3349e4e61.zip
tk-0093962104e9c604b7d299866aebcde3349e4e61.tar.gz
tk-0093962104e9c604b7d299866aebcde3349e4e61.tar.bz2
Ignore -Wc++-compat in one more place (before including X11/Xlib.h)
Diffstat (limited to 'generic')
-rw-r--r--generic/tk.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tk.h b/generic/tk.h
index af8e5ca..ec1f78d 100644
--- a/generic/tk.h
+++ b/generic/tk.h
@@ -93,6 +93,9 @@ extern "C" {
#ifndef RC_INVOKED
#if !defined(_XLIB_H) && !defined(_X11_XLIB_H_)
+#if defined(__GNUC__) && !defined(__cplusplus)
+# pragma GCC diagnostic ignored "-Wc++-compat"
+#endif
# include <X11/Xlib.h>
# ifdef MAC_OSX_TK
# include <X11/X.h>