aboutsummaryrefslogtreecommitdiffstats
path: root/community/libstaroffice/fix-maybe-uninitialized.patch
diff options
context:
space:
mode:
authorinfo@mobile-stream.com <info@mobile-stream.com>2018-11-22 15:03:04 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-11-26 14:03:08 +0000
commitdee335d366275402078a233e0b0e44e9086e373f (patch)
treea17915752a6285f40db2720776f58d33caa7caae /community/libstaroffice/fix-maybe-uninitialized.patch
parent24d42df93ce078756e50b902f7425f92b40fe808 (diff)
downloadaports-dee335d366275402078a233e0b0e44e9086e373f.tar.gz
aports-dee335d366275402078a233e0b0e44e9086e373f.tar.bz2
aports-dee335d366275402078a233e0b0e44e9086e373f.tar.xz
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.
Diffstat (limited to 'community/libstaroffice/fix-maybe-uninitialized.patch')
-rw-r--r--community/libstaroffice/fix-maybe-uninitialized.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/libstaroffice/fix-maybe-uninitialized.patch b/community/libstaroffice/fix-maybe-uninitialized.patch
new file mode 100644
index 0000000000..b4f1ec9385
--- /dev/null
+++ b/community/libstaroffice/fix-maybe-uninitialized.patch
@@ -0,0 +1,11 @@
+--- 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;
+