diff --git a/recipes-games/opentyrian/files/0003-fix-build-with-pedantic-gcc6.patch b/recipes-games/opentyrian/files/0003-fix-build-with-pedantic-gcc6.patch new file mode 100644 index 0000000..c54df6b --- /dev/null +++ b/recipes-games/opentyrian/files/0003-fix-build-with-pedantic-gcc6.patch @@ -0,0 +1,28 @@ +From 95788b1b09b0bd8e89cc3c7e5ed769ae3e87ac34 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Sun, 31 Jul 2016 04:02:51 +0200 +Subject: [PATCH] fix build with pedantic gcc6 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Andreas Müller +--- + src/joystick.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/src/joystick.c b/src/joystick.c +index 63dd75d..bf99647 100644 +--- a/src/joystick.c ++++ b/src/joystick.c +@@ -42,7 +42,6 @@ bool ignore_joystick = false; + int joysticks = 0; + Joystick *joystick = NULL; + +-static const char joystick_cfg_version = 1; + static const int joystick_analog_max = 32767; + + // eliminates axis movement below the threshold +-- +2.5.5 + diff --git a/recipes-games/opentyrian/opentyrian_2.1.20130907.bb b/recipes-games/opentyrian/opentyrian_2.1.20130907.bb index fa26308..04a71d5 100644 --- a/recipes-games/opentyrian/opentyrian_2.1.20130907.bb +++ b/recipes-games/opentyrian/opentyrian_2.1.20130907.bb @@ -13,6 +13,7 @@ SRC_URI = " \ http://camanis.net/opentyrian/tyrian21.zip;name=data \ file://0001-Makefile-use-pkgconfig-to-find-sdl.patch \ file://0002-Fix-several-uninitialized-variable-warnings.patch \ + file://0003-fix-build-with-pedantic-gcc6.patch \ " SRC_URI[md5sum] = "978686c5a1dfbac69a2161aadf084c2b" SRC_URI[sha256sum] = "f54b6b3cedcefa187c9f605d6164aae29ec46a731a6df30d351af4c008dee45f"