mirror of
https://github.com/mpv-player/mpv
synced 2025-04-19 05:37:26 +00:00
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
This commit is contained in:
parent
c625cec1f8
commit
a22c69b980
4
configure
vendored
4
configure
vendored
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user