Merge pull request #2010 from vlj/rsx-refactor

rsx: Fix warning because of unused arguments
This commit is contained in:
vlj 2016-07-31 19:32:30 +02:00 committed by GitHub
commit 32a03344b3
2 changed files with 4 additions and 4 deletions

View File

@ -4002,7 +4002,7 @@ struct registers_decoder<NV4097_NO_OPERATION>
decoded_type(u32) {}; decoded_type(u32) {};
}; };
static std::string dump(u32 &&decoded_values) static std::string dump(u32 &&)
{ {
return "(nop)"; return "(nop)";
} }
@ -4016,7 +4016,7 @@ struct registers_decoder<NV4097_INVALIDATE_VERTEX_CACHE_FILE>
decoded_type(u32) {}; decoded_type(u32) {};
}; };
static std::string dump(u32 &&decoded_values) static std::string dump(u32 &&)
{ {
return "(invalidate vertex cache file)"; return "(invalidate vertex cache file)";
} }
@ -4030,7 +4030,7 @@ struct registers_decoder<NV4097_INVALIDATE_VERTEX_FILE>
decoded_type(u32) {}; decoded_type(u32) {};
}; };
static std::string dump(u32 &&decoded_values) static std::string dump(u32 &&)
{ {
return "(invalidate vertex file)"; return "(invalidate vertex file)";
} }

View File

@ -80,7 +80,7 @@ namespace rsx
namespace namespace
{ {
template<typename T, size_t... N, typename Args> template<typename T, size_t... N, typename Args>
std::array<T, sizeof...(N)> fill_array(Args&& arg, std::index_sequence<N...> seq) std::array<T, sizeof...(N)> fill_array(Args&& arg, std::index_sequence<N...>)
{ {
return{ T(N, std::forward<Args>(arg))... }; return{ T(N, std::forward<Args>(arg))... };
} }