# HG changeset patch # User diego # Date 1284457292 0 # Node ID 7327d3c7e2939ace2de8e7df473297d00f805135 # Parent 1203050ff67fe30bf8bd4da26fdee800b34257b3 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' diff -r 1203050ff67f -r 7327d3c7e293 configure --- 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 < #include -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 -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 #include -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);