Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hello guys,

I am getting a compile error on linux because I am using -Werror.
See down below:

/home/djano/libreoffice-core-gcc9/vcl/unx/generic/gdi/salgdi2.cxx: In
member function ‘bool X11SalGraphics::drawAlphaBitmapOpt(const SalTwoRect&,
const SalBitmap&, const SalBitmap&, bool)’:
/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]
In file included from
/home/djano/libreoffice-core-gcc9/vcl/unx/generic/gdi/salgdi2.cxx:34:0:
/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]
/home/djano/libreoffice-core-gcc9/vcl/unx/generic/gdi/salgdi2.cxx:661:13:
note: ‘aAlphaPic’ was declared here
cc1plus: all warnings being treated as errors

This code was committed yesterday.
I am not sure what should aAlphaPM be initialized to?

Also why is all the code not currently compiled with -Werror?
Is it because it would slow down the build? Or is it because there are
false positive warnings?
IMHO, using -Werror could prevent many mistakes.

Cheers,
Jean-Noel

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.