D:\Work\teeworlds\teeworlds-race>bam conf=release tools
[1/2] [1] c++ src/tools/map_update.cpp
In file included from src/tools/map_update.cpp:7:0:
src/tools/map/map.h:442:11: error: redeclaration of 'MOD_NONE'
MOD_NONE=0,
^
src/tools/map/map.h:59:2: note: previous declaration '<anonymous enum> MOD_NONE'
MOD_NONE = 0,
^~~~~~~~
src/tools/map/map.h:443:2: error: redeclaration of 'MOD_RACE'
MOD_RACE
^~~~~~~~
src/tools/map/map.h:60:2: note: previous declaration '<anonymous enum> MOD_RACE'
MOD_RACE
^~~~~~~~
src/tools/map/map.h:448:12: error: redefinition of 'int gs_ModifyIndexDeletedInd
ex'
static int gs_ModifyIndexDeletedIndex;
^~~~~~~~~~~~~~~~~~~~~~~~~~
src/tools/map/map.h:65:12: note: 'int gs_ModifyIndexDeletedIndex' previously dec
lared here
static int gs_ModifyIndexDeletedIndex;
^~~~~~~~~~~~~~~~~~~~~~~~~~
src/tools/map/map.h: In function 'void ModifyIndexDeleted(int*)':
src/tools/map/map.h:449:13: error: redefinition of 'void ModifyIndexDeleted(int*
)'
static void ModifyIndexDeleted(int *pIndex)
^~~~~~~~~~~~~~~~~~
src/tools/map/map.h:66:13: note: 'void ModifyIndexDeleted(int*)' previously defi
ned here
static void ModifyIndexDeleted(int *pIndex)
^~~~~~~~~~~~~~~~~~
src/tools/map/map.h: At global scope:
src/tools/map/map.h:462:24: error: redeclaration of 'TILEFLAG_EX_INVISIBLE'
TILEFLAG_EX_INVISIBLE=1,
^
src/tools/map/map.h:79:2: note: previous declaration '<anonymous enum> TILEFLAG_
EX_INVISIBLE'
TILEFLAG_EX_INVISIBLE = 1,
^~~~~~~~~~~~~~~~~~~~~
src/tools/map/map.h:463:24: error: redeclaration of 'TILEFLAG_EX_ONE_COLOR'
TILEFLAG_EX_ONE_COLOR=2,
^
src/tools/map/map.h:80:2: note: previous declaration '<anonymous enum> TILEFLAG_
EX_ONE_COLOR'
TILEFLAG_EX_ONE_COLOR = 2,
^~~~~~~~~~~~~~~~~~~~~
src/tools/map/map.h:465:18: error: redeclaration of 'MAX_SKIP'
MAX_SKIP=(1<<8)-1
^
src/tools/map/map.h:82:2: note: previous declaration '<anonymous enum> MAX_SKIP'
MAX_SKIP = (1 << 8) - 1
^~~~~~~~
src/tools/map/map.h:468:8: error: redefinition of 'struct CEntity'
struct CEntity
^~~~~~~
src/tools/map/map.h:85:8: error: previous definition of 'struct CEntity'
struct CEntity
^~~~~~~
src/tools/map/map.h:474:7: error: redefinition of 'class CEnvelope'
class CEnvelope
^~~~~~~~~
src/tools/map/map.h:91:7: error: previous definition of 'class CEnvelope'
class CEnvelope
^~~~~~~~~
src/tools/map/map.h:568:7: error: redefinition of 'class CLayer'
class CLayer
^~~~~~
src/tools/map/map.h:185:7: error: previous definition of 'class CLayer'
class CLayer
^~~~~~
src/tools/map/map.h:600:7: error: redefinition of 'class CLayerGroup'
class CLayerGroup
^~~~~~~~~~~
src/tools/map/map.h:217:7: error: previous definition of 'class CLayerGroup'
class CLayerGroup
^~~~~~~~~~~
src/tools/map/map.h:657:7: error: redefinition of 'class CEditorImage'
class CEditorImage : public CImageInfo
^~~~~~~~~~~~
src/tools/map/map.h:274:7: error: previous definition of 'class CEditorImage'
class CEditorImage : public CImageInfo
^~~~~~~~~~~~
src/tools/map/map.h:683:7: error: redefinition of 'class CEditorMap'
class CEditorMap
^~~~~~~~~~
src/tools/map/map.h:300:7: error: previous definition of 'class CEditorMap'
class CEditorMap
^~~~~~~~~~
src/tools/map/map.h:772:7: error: redefinition of 'class CLayerTiles'
class CLayerTiles : public CLayer
^~~~~~~~~~~
src/tools/map/map.h:389:7: error: previous definition of 'class CLayerTiles'
class CLayerTiles : public CLayer
^~~~~~~~~~~
src/tools/map/map.h:799:7: error: redefinition of 'class CLayerQuads'
class CLayerQuads : public CLayer
^~~~~~~~~~~
src/tools/map/map.h:416:7: error: previous definition of 'class CLayerQuads'
class CLayerQuads : public CLayer
^~~~~~~~~~~
src/tools/map/map.h:816:7: error: redefinition of 'class CLayerGame'
class CLayerGame : public CLayerTiles
^~~~~~~~~~
src/tools/map/map.h:433:7: error: previous definition of 'class CLayerGame'
class CLayerGame : public CLayerTiles
^~~~~~~~~~
src/tools/map/map.h:941:43: error: 'ARRAY_SIZE' was not declared in this scope
ARRAY_SIZE(s_aDesertMainShadowIndicesOld),
^
src/tools/map/map.h:964:42: error: 'ARRAY_SIZE' was not declared in this scope
ARRAY_SIZE(s_aGrassMainShadowIndicesOld),
^
src/tools/map/map.h:977:43: error: 'ARRAY_SIZE' was not declared in this scope
ARRAY_SIZE(s_aJungleMainShadowIndicesOld),
^
src/tools/map/map.h:987:39: error: 'ARRAY_SIZE' was not declared in this scope
ARRAY_SIZE(s_aGrassDoodadsIndicesOld),
^
src/tools/map/map.h:988:39: error: 'ARRAY_SIZE' was not declared in this scope
ARRAY_SIZE(s_aGrassDoodadsIndicesDel),
^
src/tools/map/map.h:997:37: error: 'ARRAY_SIZE' was not declared in this scope
ARRAY_SIZE(s_aWinterMainIndicesOld),
^
src/tools/map/map.h:998:37: error: 'ARRAY_SIZE' was not declared in this scope
ARRAY_SIZE(s_aWinterMainIndicesDel),
^
src/tools/map/map.h:1008:37: error: 'ARRAY_SIZE' was not declared in this scope
ARRAY_SIZE(s_aDesertMainIndicesDel),
^
src/tools/map/map.h:1009:35: error: 'ARRAY_SIZE' was not declared in this scope
ARRAY_SIZE(s_aDesertMainMoveData),
^
src/tools/map/map.h:1018:44: error: 'ARRAY_SIZE' was not declared in this scope
ARRAY_SIZE(s_aGenericUnhookableIndicesDel),
^
src/tools/map/map.h:1028:36: error: 'ARRAY_SIZE' was not declared in this scope
ARRAY_SIZE(s_aGrassMainIndicesDel),
^
src/tools/map/map.h:1029:34: error: 'ARRAY_SIZE' was not declared in this scope
ARRAY_SIZE(s_aGrassMainMoveData),
^
src/tools/map/map.h:1039:35: error: 'ARRAY_SIZE' was not declared in this scope
ARRAY_SIZE(s_aJungleMainMoveData),
^
src/tools/map_update.cpp: In function 'void UpdateLayer(CLayerGroup*, CLayerTile
s*, const CTilesetUpdateData*)':
src/tools/map_update.cpp:84:62: error: cannot convert 'const CTilesetMoveData' t
o 'const CTilesetMoveData*' in initialization
const CTilesetMoveData *pMoveData = pUpdateData->m_pMoveData;
^~~~~~~~~~~
src/tools/map_update.cpp:118:66: error: cannot convert 'const CTilesetMoveData'
to 'const CTilesetMoveData*' in initialization
const CTilesetMoveData *pMoveData = pUpdateData->m_pMoveData;
^~~~~~~~~~~
src/tools/map_update.cpp: In function 'void UpdateMap(CEditorMap*)':
src/tools/map_update.cpp:154:66: error: 'ARRAY_SIZE' was not declared in this sc
ope
for(int Index = 0; Index < ARRAY_SIZE(s_TilesetUpdateData); Index++)
^
src/tools/map_update.cpp: In function 'int main(int, const char**)':
src/tools/map_update.cpp:219:5: warning: this 'if' clause does not guard... [-Wm
isleading-indentation]
if(!Map.Save(s_pStorage, argv[2]))
^~
src/tools/map_update.cpp:222:2: note: ...this statement, but the latter is misle
adingly indented as if it is guarded by the 'if'
return 0;
^~~~~~
In file included from src/tools/map_update.cpp:7:0:
src/tools/map/map.h: At global scope:
src/tools/map/map.h:843:20: warning: 's_aImageNames' defined but not used [-Wunu
sed-variable]
static const char *s_aImageNames[] = {
^~~~~~~~~~~~~
src/tools/map/map.h:449:13: warning: 'void ModifyIndexDeleted(int*)' defined but
not used [-Wunused-function]
static void ModifyIndexDeleted(int *pIndex)
^~~~~~~~~~~~~~~~~~
bam: 'c++ src/tools/map_update.cpp' error 1
bam: error: a build step failed