diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-10-30 20:39:24 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-10-30 20:39:24 (GMT) |
commit | 74707353e824dd0dced5d646f6603f80e9647ae5 (patch) | |
tree | f6debcecd71fc39b2a2caad48558a40b6f33b6e4 /win/tclWinFile.c | |
parent | 22a5d73ebf204659f328464091641c1b71c865c1 (diff) | |
download | tcl-74707353e824dd0dced5d646f6603f80e9647ae5.zip tcl-74707353e824dd0dced5d646f6603f80e9647ae5.tar.gz tcl-74707353e824dd0dced5d646f6603f80e9647ae5.tar.bz2 |
Add support for TIP #494 to registry and dde. Only effective when compiled against Tcl 9.0 headers. This way we can keep the source-code for those extensions 100% equal in all branches.
Work-around for gcc warning in tclWinFile.c. Discovered by Travis CI.
Diffstat (limited to 'win/tclWinFile.c')
-rwxr-xr-x | win/tclWinFile.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c index cbd8814..8ee4bce 100755 --- a/win/tclWinFile.c +++ b/win/tclWinFile.c @@ -569,6 +569,11 @@ TclWinSymLinkDelete( *-------------------------------------------------------------------- */ +#if defined (__clang__) || ((__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5)))) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Warray-bounds" +#endif + static Tcl_Obj * WinReadLinkDirectory( const TCHAR *linkDirPath) @@ -684,6 +689,10 @@ WinReadLinkDirectory( Tcl_SetErrno(EINVAL); return NULL; } + +#if defined (__clang__) || ((__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5)))) +#pragma GCC diagnostic pop +#endif /* *-------------------------------------------------------------------- |