Commit ab5d6426 authored by info@mobile-stream.com's avatar info@mobile-stream.com Committed by Leonardo Arena

main/librevenge: fix build with gcc8 (-Werror too strict)

gcc8 reveals two -Wparentheses cases (harmless, though fixed in upstream)
and one -Wimplicit-fallthrough case (intentional but improperly commented).

And since upstream also disabled -Werror by default, just do the same in
APKBUILD for easier removal on version upgrade.
parent a9d42623
......@@ -2,7 +2,7 @@
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=librevenge
pkgver=0.0.4
pkgrel=1
pkgrel=2
pkgdesc="Base library for writing document import filters"
url="https://sourceforge.net/projects/libwpd/"
arch="all"
......@@ -22,6 +22,7 @@ build() {
# http://sourceforge.net/p/libwpd/librevenge/ci/0beee70d1bf52f0d81b60ee8c373e477991fe546/
export CPPFLAGS=-DBOOST_ERROR_CODE_HEADER_ONLY
CXXFLAGS="$CXXFLAGS -Wno-error=implicit-fallthrough -Wno-error=parentheses" \
./configure \
--build=$CBUILD \
--host=$CHOST \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment