summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2023-01-16 23:17:41 +0100
committerLudovic Courtès <ludo@gnu.org>2023-01-16 23:17:41 +0100
commitf8938f517edc04a4984e3710f5afd2afbb05f1c5 (patch)
tree1690a7536e7238361b7e542fdd41c3d92bf60d60
parent51152392ef04b053e3c7b2576473df2df9d08fe0 (diff)
downloadguile-f8938f517edc04a4984e3710f5afd2afbb05f1c5.tar.gz
build: Avoid implicit 'int' return type in configure tests.
Fixes <https://bugs.gnu.org/60022>. Reported by Florian Weimer <fweimer@redhat.com>. * configure.ac: Add missing implicit 'int' return type in tests.
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index f8c12f0d7..16030e2b3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -904,7 +904,7 @@ AC_CACHE_VAL(guile_cv_localtime_cache,
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <time.h>
#include <stdlib.h>
extern char **environ;
-unset_TZ ()
+int unset_TZ ()
{
char **from, **to;
for (to = from = environ; (*to = *from); from++)
@@ -913,7 +913,7 @@ unset_TZ ()
}
char TZ_GMT0[] = "TZ=GMT0";
char TZ_PST8[] = "TZ=PST8";
-main()
+int main()
{
time_t now = time ((time_t *) 0);
int hour_GMT0, hour_unset;