Hello guys,<br><br>I am getting a compile error on linux because I am using -Werror.<br>See down below:<br><br>/home/djano/libreoffice-core-gcc9/vcl/unx/generic/gdi/salgdi2.cxx: In member function ‘bool X11SalGraphics::drawAlphaBitmapOpt(const SalTwoRect&, const SalBitmap&, const SalBitmap&, bool)’:<br>

/home/djano/libreoffice-core-gcc9/vcl/unx/generic/gdi/salgdi2.cxx:763:42: error: ‘aAlphaPM’ may be used uninitialized in this function [-Werror=maybe-uninitialized]<br>In file included from /home/djano/libreoffice-core-gcc9/vcl/unx/generic/gdi/salgdi2.cxx:34:0:<br>

/home/djano/libreoffice-core-gcc9/vcl/unx/generic/gdi/xrender_peer.hxx:126:84: error: ‘aAlphaPic’ may be used uninitialized in this function [-Werror=maybe-uninitialized]<br>/home/djano/libreoffice-core-gcc9/vcl/unx/generic/gdi/salgdi2.cxx:661:13: note: ‘aAlphaPic’ was declared here<br>

cc1plus: all warnings being treated as errors<br><br>This code was committed yesterday.<br>I am not sure what should aAlphaPM be initialized to?<br><br>Also why is all the code not currently compiled with -Werror?<br>Is it because it would slow down the build? Or is it because there are false positive warnings?<br>

IMHO, using -Werror could prevent many mistakes.<br><br>Cheers,<br>Jean-Noel<br>