Mercurial > mplayer.hg
changeset 31669:1c19c2e6c5cd
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
author | diego |
---|---|
date | Wed, 14 Jul 2010 13:49:08 +0000 |
parents | bbd4f3ab3341 |
children | 05a6d70df204 |
files | configure |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Wed Jul 14 08:17:58 2010 +0000 +++ b/configure Wed Jul 14 13:49:08 2010 +0000 @@ -1761,7 +1761,7 @@ 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; @@ -5171,7 +5171,7 @@ 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);