opentyrian: fix build wit gcc6

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
Andreas Müller
2016-07-31 04:09:23 +02:00
parent 6ffaef6848
commit 512ac81342
2 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
From 95788b1b09b0bd8e89cc3c7e5ed769ae3e87ac34 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
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 <schnitzeltony@googlemail.com>
---
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

View File

@@ -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"