diff options
author | Yotam Barnoy | 2010-09-01 12:41:16 +0000 |
---|---|---|
committer | Yotam Barnoy | 2010-09-01 12:41:16 +0000 |
commit | cdd27ca9438906e8bd9d1942fecd69881ff14418 (patch) | |
tree | 334240ee9f7e39d60171ec90bac47a4f21b99355 /gui/ListWidget.h | |
parent | 81eb3cfba157b3c45095734d5e9177a199d0c351 (diff) | |
download | scummvm-rg350-cdd27ca9438906e8bd9d1942fecd69881ff14418.tar.gz scummvm-rg350-cdd27ca9438906e8bd9d1942fecd69881ff14418.tar.bz2 scummvm-rg350-cdd27ca9438906e8bd9d1942fecd69881ff14418.zip |
COMMON: changed read/write endian function to use __may_alias__ attribute
This is a better solution for the gcc aliasing problem that happens when aliasing a struct onto something else. What happens is that the compiler assumes no aliasing can happen when -O2 and -O3 are activated, and a call to READ_UINT32() followed by WRITE_UINT32() and another READ_UINT32() will be optimized to return the original read value instead of re-reading.
svn-id: r52480
Diffstat (limited to 'gui/ListWidget.h')
0 files changed, 0 insertions, 0 deletions