I have a code similar to this:
std::unique_ptr<Object> get_raii_object()
{
return std::make_unique<Object>(/* Many parameters that I don't want to write several times, if I remove this function altogether */ );
}
void some_code()
{
std::unique_ptr<Object> raii_object_holder = get_raii_object();
more_code();
}
Resharper C++ marks "raii_object_holder" as unused local variable, although it is necessary.
I prefer to avoid disabling this warning, locally, or globally