changeset 32144:7327d3c7e293

Mark local functions in configure tests as static; fixes the warnings: tmp.c:1: warning: no previous prototype for 'foo' tmp.c:2: warning: no previous prototype for 'func' tmp.c:3: warning: no previous prototype for 'catch'
author diego
date Tue, 14 Sep 2010 09:41:32 +0000
parents 1203050ff67f
children b97cd2b0dc07
files configure
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Sep 14 09:08:31 2010 +0000
+++ b/configure	Tue Sep 14 09:41:32 2010 +0000
@@ -1747,7 +1747,7 @@
       cat > $TMPC <<EOF
 #include <stdlib.h>
 #include <signal.h>
-void catch(int sig) { exit(1); }
+static void catch(int sig) { exit(1); }
 int main(void) {
   signal(SIGILL, catch);
   __asm__ volatile ("$3":::"memory"); return 0;
@@ -3045,7 +3045,7 @@
 echocheck "__builtin_expect"
 # GCC branch prediction hint
 cat > $TMPC << EOF
-int foo(int a) {
+static int foo(int a) {
     a = __builtin_expect(a, 10);
     return a == 10 ? 0 : 1;
 }
@@ -3619,7 +3619,7 @@
 if test "$_pthreads" = auto ; then
 cat > $TMPC << EOF
 #include <pthread.h>
-void* func(void *arg) { return arg; }
+static void *func(void *arg) { return arg; }
 int main(void) { pthread_t tid; return pthread_create(&tid, 0, func, 0) == 0 ? 0 : 1; }
 EOF
 _pthreads=no
@@ -5199,7 +5199,7 @@
   cat > $TMPC << EOF
 #include <signal.h>
 #include <gif_lib.h>
-void catch(int sig) { exit(1); }
+static void catch(int sig) { exit(1); }
 int main(void) {
   signal(SIGSEGV, catch);  // catch segfault
   printf("EGifPutExtensionFirst is at address %p\n", EGifPutExtensionFirst);