From: Jean-Paul Saman Date: Wed, 26 Mar 2008 10:50:18 +0000 (+0100) Subject: Fix compiler warnings. X-Git-Tag: 0.9.0-test0~1495^2~10 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=44372f182926a8aa8ea5d182a951919357270930;p=vlc Fix compiler warnings. --- diff --git a/extras/misc/Makefile b/extras/misc/Makefile index 1f10f4c83d..18876ca537 100644 --- a/extras/misc/Makefile +++ b/extras/misc/Makefile @@ -1,4 +1,4 @@ -all: zsh overlay-test +all: overlay-test overlay-test: overlay-test.c gcc -g2 --std=c99 -D_XOPEN_SOURCE=500 overlay-test.c -lm -o overlay-test diff --git a/extras/misc/overlay-test.c b/extras/misc/overlay-test.c index 01d14fe41e..63774d5e47 100644 --- a/extras/misc/overlay-test.c +++ b/extras/misc/overlay-test.c @@ -272,13 +272,13 @@ int main( int i_argc, char *ppsz_argv[] ) { printf( "Attaching shared memory for RGBA..." ); p_imageRGBA = shmat( i_shmRGBA, NULL, 0 ); - if( p_imageRGBA == -1 ) { + if( p_imageRGBA == (void*)-1 ) { printf( " failed\n" ); exit( -1 ); } printf( " done. Text..." ); p_text = shmat( i_shmText, NULL, 0 ); - if( p_text == -1 ) { + if( p_text == (void*)-1 ) { printf( " failed\n" ); exit( -1 ); }