Commit 44372f18 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Fix compiler warnings.

parent 60f260e0
all: zsh overlay-test all: overlay-test
overlay-test: overlay-test.c overlay-test: overlay-test.c
gcc -g2 --std=c99 -D_XOPEN_SOURCE=500 overlay-test.c -lm -o overlay-test gcc -g2 --std=c99 -D_XOPEN_SOURCE=500 overlay-test.c -lm -o overlay-test
...@@ -272,13 +272,13 @@ int main( int i_argc, char *ppsz_argv[] ) { ...@@ -272,13 +272,13 @@ int main( int i_argc, char *ppsz_argv[] ) {
printf( "Attaching shared memory for RGBA..." ); printf( "Attaching shared memory for RGBA..." );
p_imageRGBA = shmat( i_shmRGBA, NULL, 0 ); p_imageRGBA = shmat( i_shmRGBA, NULL, 0 );
if( p_imageRGBA == -1 ) { if( p_imageRGBA == (void*)-1 ) {
printf( " failed\n" ); printf( " failed\n" );
exit( -1 ); exit( -1 );
} }
printf( " done. Text..." ); printf( " done. Text..." );
p_text = shmat( i_shmText, NULL, 0 ); p_text = shmat( i_shmText, NULL, 0 );
if( p_text == -1 ) { if( p_text == (void*)-1 ) {
printf( " failed\n" ); printf( " failed\n" );
exit( -1 ); exit( -1 );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment