errmsg: Don't create unused parameters
This commit is contained in:
parent
3b638289f4
commit
cec57b76d3
|
@ -224,7 +224,10 @@ void Message::generateCode(std::ostream &ostr) const
|
||||||
ostr << " }\n";
|
ostr << " }\n";
|
||||||
|
|
||||||
// Settings..
|
// Settings..
|
||||||
ostr << " static bool " << _funcname << "(const Settings &s)" << std::endl;
|
ostr << " static bool " << _funcname << "(";
|
||||||
|
if (_settings != always && _settings != never)
|
||||||
|
ostr << "const Settings &s";
|
||||||
|
ostr << ")" << std::endl;
|
||||||
ostr << " {\n";
|
ostr << " {\n";
|
||||||
ostr << " return ";
|
ostr << " return ";
|
||||||
switch (_settings)
|
switch (_settings)
|
||||||
|
|
Loading…
Reference in New Issue