]> git.sesse.net Git - vlc/commitdiff
Fix compiler warnings.
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Wed, 26 Mar 2008 10:50:18 +0000 (11:50 +0100)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>
Wed, 9 Apr 2008 08:42:29 +0000 (10:42 +0200)
extras/misc/Makefile
extras/misc/overlay-test.c

index 1f10f4c83dc0f4df95228343f8d483f35388fd4b..18876ca5377483076b8fcb096e0d5203b35a51f7 100644 (file)
@@ -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
index 01d14fe41e1dd789046a878472a367c0c160a20e..63774d5e47c9ebcd58f66dc0fd7fee19b3bd8e32 100644 (file)
@@ -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 );
     }