diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-10-06 13:28:24 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-10-06 13:28:24 (GMT) |
commit | a9405cc25305fbdccd97fd95a57d8f76c9eda0ac (patch) | |
tree | 395da4ad56d384343576e59a3fd2c54fc2fb0f1d | |
parent | 1f4f47ccf50b4d6518c3dbfd9fd09c7bbb785929 (diff) | |
download | tcl-a9405cc25305fbdccd97fd95a57d8f76c9eda0ac.zip tcl-a9405cc25305fbdccd97fd95a57d8f76c9eda0ac.tar.gz tcl-a9405cc25305fbdccd97fd95a57d8f76c9eda0ac.tar.bz2 |
(cherry-pick): HAVE_TM_GMTOFF detection doesn't work if CFLAGS contains -Werror. Here's the fix.
-rwxr-xr-x | unix/configure | 2 | ||||
-rw-r--r-- | unix/tcl.m4 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/unix/configure b/unix/configure index 7d40237..9dd612d 100755 --- a/unix/configure +++ b/unix/configure @@ -14030,7 +14030,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { -struct tm tm; tm.tm_gmtoff; +struct tm tm; (void)tm.tm_gmtoff; ; return 0; } diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 25a01ac..51ac8d9 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -2339,7 +2339,7 @@ AC_DEFUN([SC_TIME_HANDLER], [ fi AC_CACHE_CHECK([tm_gmtoff in struct tm], tcl_cv_member_tm_gmtoff, [ - AC_TRY_COMPILE([#include <time.h>], [struct tm tm; tm.tm_gmtoff;], + AC_TRY_COMPILE([#include <time.h>], [struct tm tm; (void)tm.tm_gmtoff;], tcl_cv_member_tm_gmtoff=yes, tcl_cv_member_tm_gmtoff=no)]) if test $tcl_cv_member_tm_gmtoff = yes ; then AC_DEFINE(HAVE_TM_GMTOFF, 1, [Should we use the tm_gmtoff field of struct tm?]) |