#26 compile error with -DOLD

open
nobody
None
5
2012-02-22
2012-02-22
No

The function unit_check_move does not seem to exist anymore. However, there is some code in map.c still referring to it:

gcc -DOLD -DHAVE_CONFIG_H -DWITH_SOUND -DINSTALLDIR=\"/usr/local/share/lgeneral\" -I. -I.. -I../util -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -g -O2 -Wall -MT map.o -MD -MP -MF ".deps/map.Tpo" -c -o map.o map.c
map.c: In function 'map_add_unit_move_mask_rec':
map.c:426: warning: implicit declaration of function 'unit_check_move'
map.c: At top level:
map.c:542: error: redefinition of 'map_add_unit_move_mask_rec'
map.c:400: note: previous definition of 'map_add_unit_move_mask_rec' was here
map.c:593: error: redefinition of 'map_get_unit_move_mask'
map.c:446: note: previous definition of 'map_get_unit_move_mask' was here

Discussion


Log in to post a comment.