Suppress unused parameter warning
Added by Uana Bipro over 3 years ago
Hello.
There are some warnings about unused parameter while compiling a project with wt libs. I understand that this warnings can be silented using certain compiling flags (-Wno-unused-parameter). Would it be possible to change the source code to contain some silence logic for this warnings? Like not giving the variable a name:
template <typename Result>
void query_result_traits<Result>::getFields(Session& /*session*/,
std::vector<std::string> *aliases,
std::vector<FieldInfo>& result)
{
...
}
or casting to void:
template <typename Result>
void query_result_traits<Result>::getFields(Session& session,
std::vector<std::string> *aliases,
std::vector<FieldInfo>& result)
{
(void)session;
...
}
Thank you.
Replies (1)
RE: Suppress unused parameter warning - Added by Uana Bipro over 3 years ago
I have created a patch file with the changes needed to remove the unused parameter warning.
wt-unused-parameter-warning.patch (4.78 KB) wt-unused-parameter-warning.patch | patch for unused parameter warning |