summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPort.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-24 13:52:05 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-24 13:52:05 (GMT)
commit51bf99fdf5def9a1842cccf4308cc8d429c1ef21 (patch)
treeaf242a6d9971a7f301b6b28e87b627e9a51e6128 /unix/tclUnixPort.h
parent0f7dc05b52428797556c8b281afc976403a93157 (diff)
downloadtcl-51bf99fdf5def9a1842cccf4308cc8d429c1ef21.zip
tcl-51bf99fdf5def9a1842cccf4308cc8d429c1ef21.tar.gz
tcl-51bf99fdf5def9a1842cccf4308cc8d429c1ef21.tar.bz2
More progress in making clang build on Cygwin warning-free
Diffstat (limited to 'unix/tclUnixPort.h')
-rw-r--r--unix/tclUnixPort.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h
index 85839f1..d253101 100644
--- a/unix/tclUnixPort.h
+++ b/unix/tclUnixPort.h
@@ -96,6 +96,10 @@ typedef off_t Tcl_SeekOffset;
# define SOCKET unsigned int
# define WSAEWOULDBLOCK 10035
typedef unsigned short WCHAR;
+#ifdef __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wignored-attributes"
+#endif
__declspec(dllimport) extern __stdcall int GetModuleHandleExW(unsigned int, const void *, void *);
__declspec(dllimport) extern __stdcall int GetModuleFileNameW(void *, const void *, int);
__declspec(dllimport) extern __stdcall int WideCharToMultiByte(int, int, const void *, int,
@@ -109,6 +113,9 @@ typedef off_t Tcl_SeekOffset;
__declspec(dllimport) extern __stdcall int SetFileAttributesW(const WCHAR *, int);
__declspec(dllimport) extern int cygwin_conv_path(int, const void *, void *, int);
+#ifdef __clang__
+#pragma clang diagnostic pop
+#endif
/* On Cygwin, the environment is imported from the Cygwin DLL. */
#ifndef __x86_64__
# define environ __cygwin_environ