summaryrefslogtreecommitdiffstats
path: root/unix/tclLoadDyld.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-08-22 12:12:11 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-08-22 12:12:11 (GMT)
commit3728831c291bc29f51ee826731bd206f28687d0d (patch)
tree13e7ea21bc701a5cd170708b4cf57768aa10710d /unix/tclLoadDyld.c
parentb916fb2e6064a68a3848169f1d6263396112d330 (diff)
downloadtcl-3728831c291bc29f51ee826731bd206f28687d0d.zip
tcl-3728831c291bc29f51ee826731bd206f28687d0d.tar.gz
tcl-3728831c291bc29f51ee826731bd206f28687d0d.tar.bz2
Fix [d2612a2fa193196787aab33bb57f69b1eef9e30c|d2612a2fa1]: Build breaks because of gcc error. Only use "#pragma GCC diagnostic" if the compiler supports this.
Also re-format tclUnixSock.c without further functional changes.
Diffstat (limited to 'unix/tclLoadDyld.c')
-rw-r--r--unix/tclLoadDyld.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/tclLoadDyld.c b/unix/tclLoadDyld.c
index 8b7dc58..e998bf9 100644
--- a/unix/tclLoadDyld.c
+++ b/unix/tclLoadDyld.c
@@ -48,7 +48,9 @@
#endif /* TCL_DYLD_USE_DLFCN */
#if TCL_DYLD_USE_NSMODULE || defined(TCL_LOAD_FROM_MEMORY)
+#if defined (__clang__) || ((__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5))))
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
#include <mach-o/dyld.h>
#include <mach-o/fat.h>
#include <mach-o/swap.h>