GNU bug report logs - #60022
configure.ac fix for C99 compatibility

Previous Next

Package: guile;

Reported by: Florian Weimer <fweimer <at> redhat.com>

Date: Mon, 12 Dec 2022 21:36:02 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 60022 in the body.
You can then email your comments to 60022 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#60022; Package guile. (Mon, 12 Dec 2022 21:36:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Florian Weimer <fweimer <at> redhat.com>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Mon, 12 Dec 2022 21:36:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Florian Weimer <fweimer <at> redhat.com>
To: bug-guile <at> gnu.org
Subject: configure.ac fix for C99 compatibility
Date: Mon, 12 Dec 2022 22:35:33 +0100
This patch is needed to improve C99 compatibility:

diff --git a/configure.ac b/configure.ac
index b3879df1f..cc865a028 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;

Future compilers are likely to reject implicit int types by default.

Found via:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>

Thanks,
Florian





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Mon, 16 Jan 2023 22:20:02 GMT) Full text and rfc822 format available.

Notification sent to Florian Weimer <fweimer <at> redhat.com>:
bug acknowledged by developer. (Mon, 16 Jan 2023 22:20:02 GMT) Full text and rfc822 format available.

Message #10 received at 60022-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Florian Weimer <fweimer <at> redhat.com>
Cc: 60022-done <at> debbugs.gnu.org
Subject: Re: bug#60022: configure.ac fix for C99 compatibility
Date: Mon, 16 Jan 2023 23:19:27 +0100
Hi Florian,

Florian Weimer <fweimer <at> redhat.com> skribis:

> This patch is needed to improve C99 compatibility:
>
> diff --git a/configure.ac b/configure.ac
> index b3879df1f..cc865a028 100644
> --- a/configure.ac
> +++ b/configure.ac

Applied, thanks.

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 14 Feb 2023 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 72 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.