|
Post by russell on Jan 22, 2014 9:04:49 GMT -8
it all seems to work ok but i'm a bit OCD when it comes to warnings when compiling so just wondered if you get the same warnings when building with gcc on x86 or not as i've seen similar warnings that only occur when building on the Raspberry Pi vs other systems.
it looks like it's something to do with disk
pi@raspberrypi ~/8086tiny $ make
cc 8086tiny.c `sdl-config --cflags --libs` -o 8086tiny -O3 -fsigned-char
8086tiny.c: In function ‘main’:
8086tiny.c:277:9: warning: assignment from incompatible pointer type [enabled by default]
8086tiny.c:645:6: warning: passing argument 1 of ‘time’ from incompatible pointer type [enabled by default]
/usr/include/time.h:186:15: note: expected ‘time_t *’ but argument is of type ‘int *’
8086tiny.c:646:6: warning: passing argument 1 of ‘localtime’ from incompatible pointer type [enabled by default]
/usr/include/time.h:237:19: note: expected ‘const time_t *’ but argument is of type ‘int *’
8086tiny.c:650:37: warning: pointer type mismatch in conditional expression [enabled by default]
|
|
|
Post by Adrian Cable on Jan 22, 2014 17:34:16 GMT -8
Everything should be fine - the warnings you see are normal. I will at some point release a slight revision to the source build that will use "more exact" types (e.g. time_t * instead of int *) and then these warnings will go away.
-Adrian
|
|