diff options
author | rubidium <rubidium@openttd.org> | 2008-05-08 13:51:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-08 13:51:15 +0000 |
commit | d7e0dd6e82a614c90d3ee02e6c3b82a30fd3aadc (patch) | |
tree | 54e6eae5162713ee69c1b6375bb3e195ee836de3 | |
parent | ea218de179804342c9637aba602a0c297bf4689e (diff) | |
download | openttd-d7e0dd6e82a614c90d3ee02e6c3b82a30fd3aadc.tar.xz |
(svn r13013) -Fix: GCC 4.3 warning about a clobbering mask due to longjmp. This can't be solved by using exceptions because the longjmp is needed for PNG (C-code) handling.
-rw-r--r-- | src/spriteloader/png.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spriteloader/png.cpp b/src/spriteloader/png.cpp index 495b1b5fb..153a2d698 100644 --- a/src/spriteloader/png.cpp +++ b/src/spriteloader/png.cpp @@ -44,7 +44,7 @@ static bool OpenPNGFile(const char *filename, uint32 id, bool mask) return false; } -static bool LoadPNG(SpriteLoader::Sprite *sprite, const char *filename, uint32 id, bool mask) +static bool LoadPNG(SpriteLoader::Sprite *sprite, const char *filename, uint32 id, volatile bool mask) { png_byte header[8]; png_structp png_ptr; |