qtaccountsservice: remove -Werror to make build possible

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
Andreas Müller
2017-02-09 22:40:14 +01:00
parent 44b52fbbd8
commit 1b34f2db73
2 changed files with 34 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
From 2ebd5aab506a61f754d2f3de627079792d213454 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
Date: Thu, 9 Feb 2017 21:14:04 +0100
Subject: [PATCH] remove -Werror from build flags
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
workaround build for Raspi2/CortexA7
| /usr/include/qt5/QtCore/qlist.h:495:34: error: cast from 'QList<QVariant>::Node*' to 'QVariant*' increases required alignment of target type [-Werror=cast-align]
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2c5fdc1..89c7671 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,7 +42,7 @@ include(KDECompilerSettings)
include(KDECMakeSettings)
# Build flags
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden -Werror -Wall -Wextra -Wformat -Wswitch-default -Wunused-parameter -pedantic -std=c++11")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wformat -Wswitch-default -Wunused-parameter -pedantic -std=c++11")
# qCDebug() uses zero variadic arguments, so we need to disable this warning
# as it would become an error with -Werror
--
2.9.3

View File

@@ -6,8 +6,8 @@ LIC_FILES_CHKSUM = " \
inherit liri
SRC_URI += "file://0001-remove-Werror-from-build-flags.patch"
PV = "0.7.0+git${SRCPV}"
SRCREV = "b1440d98c272cc1890378f44baa4631a8afb40db"
S = "${WORKDIR}/git"