1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 04:35:39 +03:00
aports/community/libstaroffice/fix-maybe-uninitialized.patch
info@mobile-stream.com dee335d366 community/libstaroffice: upgrade to 0.0.6, modernize
Another package that suffers from stricter -Werror in gcc8.

Instead of trying to fix massive -Werror=parentheses case with upstream commit
abf19de1ad394523ccb8825e49d719063b2ea27f (35 changed files, 972 additions/deletions),
just upgrade to the next version and shut up a single -Werror=maybe-uninitialized failure.

Test still passes on x86_64 and mipsel at least.
2018-11-26 14:03:08 +00:00

11 lines
367 B
Diff

--- a/src/lib/StarGraphicStruct.cxx
+++ b/src/lib/StarGraphicStruct.cxx
@@ -152,7 +152,7 @@
{
if (!pattern) return false;
STOFFVec2i sz(8,8);
- unsigned tmpBufferPosition, tmpDIBFileSize;
+ unsigned tmpBufferPosition, tmpDIBFileSize = 0;
auto tmpDIBBuffer=createAndInitBMPData(sz, tmpDIBFileSize, tmpBufferPosition);
if (!tmpDIBBuffer) return false;