Skip to content

Commit f26ca2f

Browse files
committed
remove unused arg names to fix compiler warnings
1 parent adafa4b commit f26ca2f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Basescape/CraftSoldiersState.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ struct SortFunctor : public std::binary_function<Soldier *, Soldier *, bool>
5454
};
5555

5656
#define GET_ATTRIB_STAT_FN(attrib) \
57-
int attrib##Stat(Game *game, Soldier *s) { return s->getCurrentStats()->attrib; }
57+
int attrib##Stat(Game *, Soldier *s) { return s->getCurrentStats()->attrib; }
5858
GET_ATTRIB_STAT_FN(tu)
5959
GET_ATTRIB_STAT_FN(stamina)
6060
GET_ATTRIB_STAT_FN(health)
@@ -83,7 +83,7 @@ int psiSkillStat(Game *game, Soldier *s)
8383
GET_ATTRIB_STAT_FN(melee)
8484
#undef GET_ATTRIB_STAT_FN
8585
#define GET_SOLDIER_STAT_FN(attrib, camelCaseAttrib) \
86-
int attrib##Stat(Game *game, Soldier *s) { return s->get##camelCaseAttrib(); }
86+
int attrib##Stat(Game *, Soldier *s) { return s->get##camelCaseAttrib(); }
8787
GET_SOLDIER_STAT_FN(rank, Rank)
8888
GET_SOLDIER_STAT_FN(missions, Missions)
8989
GET_SOLDIER_STAT_FN(kills, Kills)
@@ -225,7 +225,7 @@ CraftSoldiersState::~CraftSoldiersState()
225225
* Sorts the soldiers list by the selected criterion
226226
* @param action Pointer to an action.
227227
*/
228-
void CraftSoldiersState::cbxSortByChange(Action *action)
228+
void CraftSoldiersState::cbxSortByChange(Action *)
229229
{
230230
size_t selIdx = _cbxSortBy->getSelected();
231231
if (selIdx == (size_t)-1)

0 commit comments

Comments
 (0)