summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-08 13:51:15 +0000
committerrubidium <rubidium@openttd.org>2008-05-08 13:51:15 +0000
commitd7e0dd6e82a614c90d3ee02e6c3b82a30fd3aadc (patch)
tree54e6eae5162713ee69c1b6375bb3e195ee836de3 /src
parentea218de179804342c9637aba602a0c297bf4689e (diff)
downloadopenttd-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.
Diffstat (limited to 'src')
-rw-r--r--src/spriteloader/png.cpp2
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;