summaryrefslogtreecommitdiff
path: root/user/kwin/kwin-5.8-respect-uint.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-05 19:24:20 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-05 19:24:20 -0500
commit5c6964cb8fbabe2e2d61eb95bcbec1f82e7f6084 (patch)
tree49800cb95c45d9bfc15f2c86dd75fd9a950c39b7 /user/kwin/kwin-5.8-respect-uint.patch
parentbdc6b437ce1c7ed0e10e914f538f937c0a47663a (diff)
downloadpackages-5c6964cb8fbabe2e2d61eb95bcbec1f82e7f6084.tar.gz
packages-5c6964cb8fbabe2e2d61eb95bcbec1f82e7f6084.tar.bz2
packages-5c6964cb8fbabe2e2d61eb95bcbec1f82e7f6084.tar.xz
packages-5c6964cb8fbabe2e2d61eb95bcbec1f82e7f6084.zip
user/kwin: new package
Diffstat (limited to 'user/kwin/kwin-5.8-respect-uint.patch')
-rw-r--r--user/kwin/kwin-5.8-respect-uint.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/user/kwin/kwin-5.8-respect-uint.patch b/user/kwin/kwin-5.8-respect-uint.patch
new file mode 100644
index 000000000..839d84d2e
--- /dev/null
+++ b/user/kwin/kwin-5.8-respect-uint.patch
@@ -0,0 +1,29 @@
+From 404f2675f8ca5496a5e528825078b1ce27669cd7 Mon Sep 17 00:00:00 2001
+From: Marco Martin <notmart@gmail.com>
+Date: Mon, 20 Mar 2017 17:01:39 +0100
+Subject: fix compilation on old gcc
+
+same as https://phabricator.kde.org/D5083,
+gcc 4.8.5 (opensuse leap) fails building modeltest with
+CMakeFiles/testHistoryModel.dir/modeltest.cpp.o: In function `ModelTest::data()':
+modeltest.cpp:(.text+0x5a57): undefined reference to `bool QTest::qCompare<int, unsigned int>(int const&, unsigned int const&, char const*, char const*, char const*, int)'
+---
+ kcmkwin/kwincompositing/test/modeltest.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/kcmkwin/kwincompositing/test/modeltest.cpp b/kcmkwin/kwincompositing/test/modeltest.cpp
+index d356b26..c077d9b 100644
+--- a/kcmkwin/kwincompositing/test/modeltest.cpp
++++ b/kcmkwin/kwincompositing/test/modeltest.cpp
+@@ -453,7 +453,7 @@ void ModelTest::data()
+ // Check that the alignment is one we know about
+ QVariant textAlignmentVariant = model->data ( model->index ( 0, 0 ), Qt::TextAlignmentRole );
+ if ( textAlignmentVariant.isValid() ) {
+- int alignment = textAlignmentVariant.toInt();
++ unsigned int alignment = textAlignmentVariant.toUInt();
+ QCOMPARE( alignment, ( alignment & ( Qt::AlignHorizontal_Mask | Qt::AlignVertical_Mask ) ) );
+ }
+
+--
+cgit v0.11.2
+