summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-06 09:44:50 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-06 09:44:50 (GMT)
commit6962ec7fc1b733086d4ac6b871d9f490816dc059 (patch)
tree3885516b7140fbe993392b7f8e143f88e7f24af2 /unix
parent8cd2f2d9e3a312c5f4e2ba6a5f812f3317b5c2e5 (diff)
parent22140449e59b9070e741eb4108f372bb602c4537 (diff)
downloadtk-6962ec7fc1b733086d4ac6b871d9f490816dc059.zip
tk-6962ec7fc1b733086d4ac6b871d9f490816dc059.tar.gz
tk-6962ec7fc1b733086d4ac6b871d9f490816dc059.tar.bz2
Merge 8.6
Diffstat (limited to 'unix')
-rwxr-xr-xunix/configure2
-rw-r--r--unix/configure.ac2
2 files changed, 2 insertions, 2 deletions
diff --git a/unix/configure b/unix/configure
index 6edbceb..37a3f64 100755
--- a/unix/configure
+++ b/unix/configure
@@ -6924,7 +6924,7 @@ else
int
main ()
{
-struct passwd pwd; pwd.pw_gecos;
+struct passwd pwd; (void)pwd.pw_gecos;
;
return 0;
}
diff --git a/unix/configure.ac b/unix/configure.ac
index b765f13..f0de585 100644
--- a/unix/configure.ac
+++ b/unix/configure.ac
@@ -230,7 +230,7 @@ AC_CHECK_TYPE([uintptr_t], [
AC_CACHE_CHECK([pw_gecos in struct pwd], tcl_cv_pwd_pw_gecos, [
AC_TRY_COMPILE([#include <pwd.h>],
- [struct passwd pwd; pwd.pw_gecos;],
+ [struct passwd pwd; (void)pwd.pw_gecos;],
tcl_cv_pwd_pw_gecos=yes, tcl_cv_pwd_pw_gecos=no)])
if test $tcl_cv_pwd_pw_gecos = yes; then
AC_DEFINE(HAVE_PW_GECOS, 1, [Does struct password have a pw_gecos field?])