Prevent warnings about unused parameters on non-debug builds

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6178 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2008-10-16 13:54:34 +00:00
parent 46002d39d9
commit abebc970fe
2 changed files with 16 additions and 0 deletions

View File

@ -487,6 +487,10 @@ static inline void _setDroidTarget(DROID *psDroid, BASE_OBJECT *psNewTarget, int
#ifdef DEBUG
psDroid->targetLine = line;
sstrcpy(psDroid->targetFunc, func);
#else
// Prevent warnings about unused parameters
(void)line;
(void)func;
#endif
}
@ -499,6 +503,10 @@ static inline void _setDroidActionTarget(DROID *psDroid, BASE_OBJECT *psNewTarge
#ifdef DEBUG
psDroid->actionTargetLine[idx] = line;
sstrcpy(psDroid->actionTargetFunc[idx], func);
#else
// Prevent warnings about unused parameters
(void)line;
(void)func;
#endif
}
@ -510,6 +518,10 @@ static inline void _setDroidBase(DROID *psDroid, STRUCTURE *psNewBase, int line,
#ifdef DEBUG
psDroid->baseLine = line;
sstrcpy(psDroid->baseFunc, func);
#else
// Prevent warnings about unused parameters
(void)line;
(void)func;
#endif
}

View File

@ -438,6 +438,10 @@ static inline void _setStructureTarget(STRUCTURE *psBuilding, BASE_OBJECT *psNew
#ifdef DEBUG
psBuilding->targetLine[idx] = line;
sstrcpy(psBuilding->targetFunc[idx], func);
#else
// Prevent warnings about unused parameters
(void)line;
(void)func;
#endif
}