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-861f7616d084master
parent
46002d39d9
commit
abebc970fe
12
src/droid.h
12
src/droid.h
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue