mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-05 06:26:38 +00:00
silence some annoying warnings
This commit is contained in:
parent
70e26eeb45
commit
ef6f565dbd
18 changed files with 80 additions and 70 deletions
|
|
@ -222,7 +222,7 @@ struct cf_t<void>
|
|||
}
|
||||
|
||||
template<typename T>
|
||||
static constexpr T insert(T value)
|
||||
static constexpr T insert(T /*value*/)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -535,7 +535,7 @@ constexpr u32 to_u8(char c)
|
|||
}
|
||||
|
||||
// Convert 2-byte string to u16 value like reinterpret_cast does
|
||||
constexpr u16 operator""_u16(const char* s, std::size_t length)
|
||||
constexpr u16 operator""_u16(const char* s, std::size_t /*length*/)
|
||||
{
|
||||
return
|
||||
#if IS_LE_MACHINE == 1
|
||||
|
|
@ -544,7 +544,7 @@ constexpr u16 operator""_u16(const char* s, std::size_t length)
|
|||
}
|
||||
|
||||
// Convert 4-byte string to u32 value like reinterpret_cast does
|
||||
constexpr u32 operator""_u32(const char* s, std::size_t length)
|
||||
constexpr u32 operator""_u32(const char* s, std::size_t /*length*/)
|
||||
{
|
||||
return
|
||||
#if IS_LE_MACHINE == 1
|
||||
|
|
@ -553,7 +553,7 @@ constexpr u32 operator""_u32(const char* s, std::size_t length)
|
|||
}
|
||||
|
||||
// Convert 8-byte string to u64 value like reinterpret_cast does
|
||||
constexpr u64 operator""_u64(const char* s, std::size_t length)
|
||||
constexpr u64 operator""_u64(const char* s, std::size_t /*length*/)
|
||||
{
|
||||
return
|
||||
#if IS_LE_MACHINE == 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue