[Commits] [wesnoth/wesnoth] ffbf68: Fix unused variable and parameter warnings from gc...
GitHub
noreply at github.com
Fri Jul 4 02:04:05 UTC 2014
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: ffbf683eb07ec320cea55f40d2ef5c740b422a34
https://github.com/wesnoth/wesnoth/commit/ffbf683eb07ec320cea55f40d2ef5c740b422a34
Author: Ignacio R. Morelle <shadowm at wesnoth.org>
Date: 2014-07-03 (Thu, 03 Jul 2014)
Changed paths:
M src/pathfind/teleport.cpp
Log Message:
-----------
Fix unused variable and parameter warnings from gcc
Deals with the following warnings (errors in strict mode) by removing
the offending code and dropping a parameter name, respectively.
src/pathfind/teleport.cpp: In member function ‘void pathfind::teleport_group::get_teleport_pair(pathfind::teleport_pair&, const unit&, bool) const’:
src/pathfind/teleport.cpp:70:12: error: variable ‘units’ set but not used [-Werror=unused-but-set-variable]
src/pathfind/teleport.cpp:66:16: error: unused parameter ‘ignore_units’ [-Werror=unused-parameter]
iceiceice, you probably should take a look at this.
More information about the Commits
mailing list