[MPlayer-cvslog] r32228 - trunk/configure

diego subversion at mplayerhq.hu
Tue Sep 14 11:41:32 CEST 2010


Author: diego
Date: Tue Sep 14 11:41:32 2010
New Revision: 32228

Log:
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'

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Tue Sep 14 11:08:31 2010	(r32227)
+++ trunk/configure	Tue Sep 14 11:41:32 2010	(r32228)
@@ -1747,7 +1747,7 @@ if x86 && test "$_runtime_cpudetection" 
       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 @@ fi
 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 @@ fi
 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 @@ if test "$_gif" = yes ; then
   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);


More information about the MPlayer-cvslog mailing list