mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-11-17 11:24:36 +01:00
Enable -Wstrict-aliasing=1 (GCC)
Fixed partially.
This commit is contained in:
1 parent
3990e2d3e6
commit
a4fdbf0a88
34 files changed
+141
-81
No files matched your search
@@ -344,7 +344,9 @@ struct fmt::cfmt_src
|
||||
template <typename T>
|
||||
T get(usz index) const
|
||||
{
|
||||
return *reinterpret_cast<const T*>(reinterpret_cast<const u8*>(args + index));
|
||||
T res{};
|
||||
std::memcpy(&res, reinterpret_cast<const u8*>(args + index), sizeof(res));
|
||||
return res;
|
||||
}
|
||||
|
||||
void skip(usz extra)
|
||||
|
||||
Reference in new issue
Block a user