[vlc-devel] commit: Fix compiler warnings. (Jean-Paul Saman )

git version control git at videolan.org
Wed Apr 9 12:44:48 CEST 2008


vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Wed Mar 26 11:50:18 2008 +0100| [44372f182926a8aa8ea5d182a951919357270930]

Fix compiler warnings.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=44372f182926a8aa8ea5d182a951919357270930
---

 extras/misc/Makefile       |    2 +-
 extras/misc/overlay-test.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/extras/misc/Makefile b/extras/misc/Makefile
index 1f10f4c..18876ca 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 01d14fe..63774d5 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 );
     }




More information about the vlc-devel mailing list