diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-07-14 13:49:08 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-02 04:14:44 +0200 |
commit | a22c69b9801ab4711fb9e740c348f826e00ac7f2 (patch) | |
tree | 71398d40c19c4b6e8aa8855704474885a6a769bb | |
parent | c625cec1f83bebccf9cbc42996f08f39e66a8663 (diff) | |
download | mpv-a22c69b9801ab4711fb9e740c348f826e00ac7f2.tar.bz2 mpv-a22c69b9801ab4711fb9e740c348f826e00ac7f2.tar.xz |
configure: use correct arguments in signal handler tests
Give signal handler function in test programs correct argument list.
This avoids a number of warnings from those test programs.
patch by Giorgio, mywing81 gmail com
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31735 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1646,7 +1646,7 @@ if x86 && test "$_runtime_cpudetection" = no ; then cat > $TMPC <<EOF #include <stdlib.h> #include <signal.h> -void catch(void) { exit(1); } +void catch(int sig) { exit(1); } int main(void) { signal(SIGILL, catch); __asm__ volatile ("$3":::"memory"); return 0; @@ -4878,7 +4878,7 @@ if test "$_gif" = yes ; then cat > $TMPC << EOF #include <signal.h> #include <gif_lib.h> -void catch(void) { exit(1); } +void catch(int sig) { exit(1); } int main(void) { signal(SIGSEGV, catch); // catch segfault printf("EGifPutExtensionFirst is at address %p\n", EGifPutExtensionFirst); |