]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(AC_LANG_INT_SAVE(C)): Declare longval and
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 5 Jan 2005 14:03:06 +0000 (14:03 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 5 Jan 2005 14:03:06 +0000 (14:03 +0000)
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>.

lib/autoconf/c.m4

index 4633955d89d73c10f1354dd1f42402eb9a074b2f..4a2158ce66afe21a8d7e823cba335b5ae039da5f 100644 (file)
@@ -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>],
 [