From: Paul Eggert Date: Wed, 5 Jan 2005 14:03:06 +0000 (+0000) Subject: (AC_LANG_INT_SAVE(C)): Declare longval and X-Git-Tag: AUTOCONF-2.59c~501 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e77951874db64f2c41baa75c27a63fda1abff97;p=thirdparty%2Fautoconf.git (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 . --- diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index 4633955d8..4a2158ce6 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -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 @%:@include ], [