- fix building with gcc8 auto/th/widelands-0.build19-2
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 6 Apr 2019 08:11:48 +0000 (10:11 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 6 Apr 2019 08:11:48 +0000 (10:11 +0200)
- rel 2

gcc8.patch [new file with mode: 0644]
widelands.spec

diff --git a/gcc8.patch b/gcc8.patch
new file mode 100644 (file)
index 0000000..10c0a40
--- /dev/null
@@ -0,0 +1,10 @@
+--- widelands-build19-src/CMakeLists.txt~      2019-04-06 09:55:34.000000000 +0200
++++ widelands-build19-src/CMakeLists.txt       2019-04-06 10:02:33.509371888 +0200
+@@ -183,7 +183,6 @@
+ wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Werror=format-security")
+ wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Werror=return-type")
+ wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Werror=shadow")
+-wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Werror=uninitialized")
+ IF (WIN32)
+   add_definitions(-DMINGW_HAS_SECURE_API)
index 3e577eb16a9c49b1b9df5528c3e36afed77c6042..00f1f36789df2bb13e7d249d0b0971135c48c936 100644 (file)
@@ -7,7 +7,7 @@ Summary:        Game like Settlers II
 Summary(pl.UTF-8):     Remake gry Settlers II
 Name:          widelands
 Version:       0.build%{buildver}
-Release:       1
+Release:       2
 License:       GPL v2+
 Group:         X11/Applications/Games
 #Source0Download: https://wl.widelands.org/wiki/Download/#release
@@ -15,6 +15,7 @@ Source0:      http://launchpad.net/widelands/build%{buildver}/build%{buildver}/+downl
 # Source0-md5: 0ef7ccf021b8001056739f755500366d
 Source1:       %{name}.desktop
 Patch0:                %{name}-pld.patch
+Patch1:                gcc8.patch
 URL:           https://wl.widelands.org/
 BuildRequires: OpenGL-devel
 BuildRequires: SDL2-devel >= 2
@@ -74,6 +75,7 @@ Remake gry Settlers II - pliki danych.
 %prep
 %setup -q -n %{name}-build%{buildver}-src
 %patch0 -p1
+%patch1 -p1
 
 %build
 install -d build
This page took 0.047154 seconds and 4 git commands to generate.