pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

opentyrian: fix buld error (unused variable)



Module Name:	pkgsrc-wip
Committed By:	Yorick Hardy <yorickhardy%gmail.com@localhost>
Pushed By:	yhardy
Date:		Sat Sep 29 09:22:28 2018 +0200
Changeset:	6ec1285c5aa567c606a1d2e7a5f8d12fc89a0bb3

Modified Files:
	opentyrian/distinfo
	opentyrian/patches/patch-src_joystick.c

Log Message:
opentyrian: fix buld error (unused variable)

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6ec1285c5aa567c606a1d2e7a5f8d12fc89a0bb3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 opentyrian/distinfo                     |  2 +-
 opentyrian/patches/patch-src_joystick.c | 13 ++++++++++++-
 2 files changed, 13 insertions(+), 2 deletions(-)

diffs:
diff --git a/opentyrian/distinfo b/opentyrian/distinfo
index 9e0dff1c3c..e0cea3dd9a 100644
--- a/opentyrian/distinfo
+++ b/opentyrian/distinfo
@@ -5,7 +5,7 @@ RMD160 (opentyrian-2.1.20130907-src.tar.gz) = d6e892ebc6b865fbb4e622f5fe32f6e4a7
 Size (opentyrian-2.1.20130907-src.tar.gz) = 297517 bytes
 SHA1 (patch-Makefile) = f6a3a8465f4b0ac7bc67963149ce210968990615
 SHA1 (patch-src_cJSON.c) = 5a9fa580cf6264b94e09645081d5f20ed12d0f20
-SHA1 (patch-src_joystick.c) = 1d25ab8adce3aafbcfc4f3f8132dffcba4a64af8
+SHA1 (patch-src_joystick.c) = 29586d78c87e5f86286a2e83f5188b0b8ee2d998
 SHA1 (patch-src_mainint.c) = 7b50be47d9807619dd8d40fe6a7fba651dac440a
 SHA1 (patch-src_opl.c) = c0767e456eeb7d3e73f111deb59ed186aa4cd099
 SHA1 (patch-src_shots.c) = 94ecd4756622c99c1acf7d566a2009564e7110f6
diff --git a/opentyrian/patches/patch-src_joystick.c b/opentyrian/patches/patch-src_joystick.c
index 0a34eac412..9f74720ae7 100644
--- a/opentyrian/patches/patch-src_joystick.c
+++ b/opentyrian/patches/patch-src_joystick.c
@@ -1,10 +1,21 @@
 $NetBSD: patch-src_joystick.c,v 1.1 2015/08/19 19:36:56 yhardy Exp $
 
+joystick_cfg_version is never used and triggers a warning (an error due to -Werror).
 Fix toupper() usage on NetBSD (compiled with -Werror).
 
 --- src/joystick.c.orig	2013-09-07 22:14:32.000000000 +0000
 +++ src/joystick.c
-@@ -490,8 +490,8 @@ void code_to_assignment( Joystick_assign
+@@ -42,7 +42,9 @@ bool ignore_joystick = false;
+ int joysticks = 0;
+ Joystick *joystick = NULL;
+ 
++/* not used
+ static const char joystick_cfg_version = 1;
++*/
+ static const int joystick_analog_max = 32767;
+ 
+ // eliminates axis movement below the threshold
+@@ -490,8 +492,8 @@ void code_to_assignment( Joystick_assign
  	else
  		--assignment->num;
  	


Home | Main Index | Thread Index | Old Index