bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RH143852] autoconf AC_CHECK_TYPE() macro generates compiler warning


From: Paul Eggert
Subject: Re: [RH143852] autoconf AC_CHECK_TYPE() macro generates compiler warnings
Date: Wed, 05 Jan 2005 06:04:56 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Thanks for reporting that.  I installed this fix.

2005-01-05  Paul Eggert  <address@hidden>

        * lib/autoconf/c.m4 (AC_LANG_INT_SAVE(C)): Declare longval and
        ulongval to be static, to avoid unwanted GCC warning.  Problem
        reported by Michael Jennings via Daniel Reed; see
        <https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.

Index: c.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/c.m4,v
retrieving revision 1.192
retrieving revision 1.193
diff -p -u -r1.192 -r1.193
--- c.m4        3 Jan 2005 07:35:21 -0000       1.192
+++ c.m4        5 Jan 2005 14:03:06 -0000       1.193
@@ -244,8 +244,8 @@ test_array @<:@0@:>@ = 0
 # But we include them only after the EXPRESSION has been evaluated.
 m4_define([AC_LANG_INT_SAVE(C)],
 [AC_LANG_PROGRAM([$1
-long int longval () { return $2; }
-unsigned long int ulongval () { return $2; }
+static long int longval () { return $2; }
+static unsigned long int ulongval () { return $2; }
 @%:@include <stdio.h>
 @%:@include <stdlib.h>],
 [




reply via email to

[Prev in Thread] Current Thread [Next in Thread]