mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
Enable -Wstrict-aliasing=1 (GCC)
Fixed partially.
This commit is contained in:
parent
3990e2d3e6
commit
a4fdbf0a88
34 changed files with 141 additions and 81 deletions
|
|
@ -54,7 +54,7 @@ struct ppu_static_function
|
|||
struct ppu_static_variable
|
||||
{
|
||||
const char* name;
|
||||
vm::gvar<char>* var; // Pointer to variable address storage
|
||||
u32* var; // Pointer to variable address storage
|
||||
void(*init)(); // Variable initialization function
|
||||
u32 size;
|
||||
u32 align;
|
||||
|
|
@ -144,7 +144,7 @@ public:
|
|||
auto& info = access_static_variable(_module, vnid);
|
||||
|
||||
info.name = name;
|
||||
info.var = reinterpret_cast<vm::gvar<char>*>(Var);
|
||||
info.var = &Var->raw();
|
||||
info.init = [] {};
|
||||
info.size = gvar::alloc_size;
|
||||
info.align = gvar::alloc_align;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue