[packages/paragui] - added narrowing patch (fixes build with gcc 10)
qboosh
qboosh at pld-linux.org
Wed Nov 25 22:04:39 CET 2020
commit bc16ecfe71da595a4a9380944e78fda685807381
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Nov 25 22:04:56 2020 +0100
- added narrowing patch (fixes build with gcc 10)
paragui-narrowing.patch | 22 ++++++++++++++++++++++
paragui.spec | 2 ++
2 files changed, 24 insertions(+)
---
diff --git a/paragui.spec b/paragui.spec
index 14be385..b727cb2 100644
--- a/paragui.spec
+++ b/paragui.spec
@@ -17,6 +17,7 @@ Patch6: SDL_Sint16.patch
Patch7: pkg-config-includedir.patch
Patch8: %{name}-physfs.patch
Patch9: %{name}-c++.patch
+Patch10: %{name}-narrowing.patch
URL: http://savannah.nongnu.org/projects/paragui/
BuildRequires: SDL-devel >= 1.2.6
BuildRequires: SDL_image-devel >= 1.2.0
@@ -91,6 +92,7 @@ Statyczna wersja biblioteki paragui.
%patch7 -p1
%patch8 -p1
%patch9 -p1
+%patch10 -p1
%build
%{__libtoolize}
diff --git a/paragui-narrowing.patch b/paragui-narrowing.patch
new file mode 100644
index 0000000..0b1227d
--- /dev/null
+++ b/paragui-narrowing.patch
@@ -0,0 +1,22 @@
+--- paragui-1.1.8/src/widgets/pgbutton.cpp.orig 2004-10-17 18:47:54.000000000 +0200
++++ paragui-1.1.8/src/widgets/pgbutton.cpp 2020-11-25 21:31:00.553128036 +0100
+@@ -99,7 +99,7 @@
+
+ const char *iconup = 0, *icondown = 0, *iconover = 0;
+
+- switch (GetID()) {
++ switch (static_cast<unsigned>(GetID())) {
+ case OK:
+ iconup = "ok_icon";
+ break;
+--- paragui-1.1.8/test/keyboard/keyboard.cpp.orig 2004-03-13 13:59:42.000000000 +0100
++++ paragui-1.1.8/test/keyboard/keyboard.cpp 2020-11-25 21:49:48.581194376 +0100
+@@ -30,7 +30,7 @@
+ if (PG_Rect::OverlapRect(*pWidget,*this))
+ return false;
+ }
+- switch (pWidget->GetID())
++ switch (static_cast<unsigned>(pWidget->GetID()))
+ {
+ case BTN_ID_CONFIRM:
+ nReturnValue = PG_Button::YES;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/paragui.git/commitdiff/bc16ecfe71da595a4a9380944e78fda685807381
More information about the pld-cvs-commit
mailing list