Skip to content

Commit

Permalink
Fix unused parameter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghabry committed Aug 25, 2024
1 parent 7518676 commit daaf2d6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/dbstring_struct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class DbStringXmlHandler : public XmlHandler {
public:
DbStringXmlHandler(DBString& ref) :
ref(ref) {}
void StartElement(XmlReader& stream, const char* name, const char** /* atts */) {
void StartElement(XmlReader& /* stream */, const char* /* name */, const char** /* atts */) {
// no-op
}
void EndElement(XmlReader& /* stream */, const char* /* name */) {
Expand Down
2 changes: 1 addition & 1 deletion src/ldb_equipment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class EquipmentXmlHandler : public XmlHandler {
int16_t* field;
public:
EquipmentXmlHandler(rpg::Equipment& ref) : ref(ref), field(NULL) {}
void StartElement(XmlReader& stream, const char* name, const char** /* atts */) {
void StartElement(XmlReader& /* stream */, const char* name, const char** /* atts */) {
if (strcmp(name, "weapon_id") == 0)
field = &ref.weapon_id;
else if (strcmp(name, "shield_id") == 0)
Expand Down
2 changes: 1 addition & 1 deletion src/ldb_eventcommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class EventCommandXmlHandler : public XmlHandler {
} field;
public:
EventCommandXmlHandler(rpg::EventCommand& ref) : ref(ref), field(None) {}
void StartElement(XmlReader& stream, const char* name, const char** /* atts */) {
void StartElement(XmlReader& /* stream */, const char* name, const char** /* atts */) {
if (strcmp(name, "code") == 0)
field = Code;
else if (strcmp(name, "indent") == 0)
Expand Down
2 changes: 1 addition & 1 deletion src/ldb_parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class ParametersXmlHandler : public XmlHandler {
std::vector<int16_t>* field;
public:
ParametersXmlHandler(rpg::Parameters& ref) : ref(ref), field(NULL) {}
void StartElement(XmlReader& stream, const char* name, const char** /* atts */) {
void StartElement(XmlReader& /* stream */, const char* name, const char** /* atts */) {
if (strcmp(name, "maxhp") == 0)
field = &ref.maxhp;
else if (strcmp(name, "maxsp") == 0)
Expand Down
2 changes: 1 addition & 1 deletion src/lmt_rect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class RectXmlHandler : public XmlHandler {
uint32_t* field;
public:
RectXmlHandler(rpg::Rect& ref) : ref(ref), field(NULL) {}
void StartElement(XmlReader& stream, const char* name, const char** /* atts */) {
void StartElement(XmlReader& /* stream */, const char* name, const char** /* atts */) {
if (strcmp(name, "l") == 0)
field = &ref.l;
else if (strcmp(name, "t") == 0)
Expand Down
2 changes: 1 addition & 1 deletion src/lmu_movecommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class MoveCommandXmlHandler : public XmlHandler {
public:
MoveCommandXmlHandler(rpg::MoveCommand& ref) :
ref(ref), field(NULL), parameter_string(false) {}
void StartElement(XmlReader& stream, const char* name, const char** /* atts */) {
void StartElement(XmlReader& /* stream */, const char* name, const char** /* atts */) {
if (strcmp(name, "command_id") == 0)
field = &ref.command_id;
else if (strcmp(name, "parameter_a") == 0)
Expand Down
2 changes: 1 addition & 1 deletion src/reader_flags.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class FlagsXmlHandler : public XmlHandler {
FlagsXmlHandler(S& obj) : obj(obj), field(NULL) {
}

void StartElement(XmlReader& stream, const char* name, const char** /* atts */) {
void StartElement(XmlReader& /* stream */, const char* name, const char** /* atts */) {
const auto idx = Flags<S>::idx(name);
if (idx < 0) {
Log::Error("XML: Unrecognized field '%s'", name);
Expand Down

0 comments on commit daaf2d6

Please sign in to comment.