summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-06 13:20:42 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-06 13:20:42 (GMT)
commit4dfeb77d2e51ad5d4356797bfe9a6622f76304fc (patch)
treee94ca485f071ce1ecdfa76640052aff7b6d1d3fc /unix
parentf7bdf7cfb1afd30dd877f66915568e794b901795 (diff)
downloadtcl-4dfeb77d2e51ad5d4356797bfe9a6622f76304fc.zip
tcl-4dfeb77d2e51ad5d4356797bfe9a6622f76304fc.tar.gz
tcl-4dfeb77d2e51ad5d4356797bfe9a6622f76304fc.tar.bz2
HAVE_TM_GMTOFF detection doesn't work if CFLAGS contains -Werror. Here's the fix.
Diffstat (limited to 'unix')
-rwxr-xr-xunix/configure2
-rw-r--r--unix/tcl.m42
2 files changed, 2 insertions, 2 deletions
diff --git a/unix/configure b/unix/configure
index 29857ce..e7f8184 100755
--- a/unix/configure
+++ b/unix/configure
@@ -8639,7 +8639,7 @@ else
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 ea3d968..2cad8fd 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -2132,7 +2132,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?])