[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] branch main updated: build: Avoid implicit 'int' return
From: |
Ludovic Courtès |
Subject: |
[Guile-commits] branch main updated: build: Avoid implicit 'int' return type in configure tests. |
Date: |
Mon, 16 Jan 2023 17:23:35 -0500 |
This is an automated email from the git hooks/post-receive script.
civodul pushed a commit to branch main
in repository guile.
The following commit(s) were added to refs/heads/main by this push:
new f8938f517 build: Avoid implicit 'int' return type in configure tests.
f8938f517 is described below
commit f8938f517edc04a4984e3710f5afd2afbb05f1c5
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Jan 16 23:17:41 2023 +0100
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.
---
configure.ac | 4 ++--
1 file 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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Guile-commits] branch main updated: build: Avoid implicit 'int' return type in configure tests.,
Ludovic Courtès <=