Fix harmless gcc warning about uninitialized mask in PNG saving code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 19 Jul 2011 22:36:00 +0000 (22:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 19 Jul 2011 22:36:00 +0000 (22:36 +0000)
commit5568067a3d151caf17d01de9192ca4471decba97
tree678212836ea2f434cc7467facdd02e2fee16a107
parenta09da78b0354c920a92993107cfb268b0701b253
Fix harmless gcc warning about uninitialized mask in PNG saving code.

The mask was actually only used when it was initialized (or, conversely, the
mask was always initialized when it was used) but gcc doesn't seem to notice
this and still warns that mask components "may be used uninitialized in this
function".

Suppress the warnings by always initializing the mask, even if we don't use
it.

Closes #13333.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/imagpng.cpp