From 44372f182926a8aa8ea5d182a951919357270930 Mon Sep 17 00:00:00 2001 From: Jean-Paul Saman Date: Wed, 26 Mar 2008 11:50:18 +0100 Subject: [PATCH] Fix compiler warnings. --- 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 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 ); } -- 2.39.5