FreeBSD Bugzilla – Attachment 233984 Details for
Bug 261826
emulators/joytran: Fails to build: error: variable 'delay' set but not used [-Werror,-Wunused-but-set-variable]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
emulators_joytran working in poudriere
emulators_joytran.diff (text/plain), 1.82 KB, created by
Timothy Beyer
on 2022-05-17 04:46:10 UTC
(
hide
)
Description:
emulators_joytran working in poudriere
Filename:
MIME Type:
Creator:
Timothy Beyer
Created:
2022-05-17 04:46:10 UTC
Size:
1.82 KB
patch
obsolete
>From 0a475b7b83b0d205e2795594b4bb7f7e8e1e5c46 Mon Sep 17 00:00:00 2001 >From: Timothy Beyer <beyert_freebsd@fastmail.net> >Date: Mon, 16 May 2022 20:53:46 -0700 >Subject: [PATCH] fix build of emulators/joytran in poudriere > >--- > emulators/{joytran.orig => joytran}/Makefile | 3 ++- > .../joytran/files/patch-src_generate__events.c | 11 +++++++++++ > 2 files changed, 13 insertions(+), 1 deletion(-) > create mode 100644 emulators/joytran/files/patch-src_generate__events.c > >diff --git a/emulators/joytran.orig/Makefile b/emulators/joytran/Makefile >index 5ee3c12..3589ebb 100644 >--- a/emulators/joytran.orig/Makefile >+++ b/emulators/joytran/Makefile >@@ -2,7 +2,7 @@ > > PORTNAME= joytran > PORTVERSION= 0.9.5.2 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= emulators > MASTER_SITES= http://sourceforge.net/projects/${PORTNAME}/files/ > >@@ -21,6 +21,7 @@ OPTIONS_DEFINE= DOCS > > post-patch: > @${REINPLACE_CMD} -e '/WARNING_FLAGS/s,-pedantic,& -fcommon,' \ >+ -e 's| -Werror||g' \ > ${WRKSRC}/CMakeLists.txt > > post-install: >diff --git a/emulators/joytran/files/patch-src_generate__events.c b/emulators/joytran/files/patch-src_generate__events.c >new file mode 100644 >index 0000000..da322f4 >--- /dev/null >+++ b/emulators/joytran/files/patch-src_generate__events.c >@@ -0,0 +1,11 @@ >+--- src/generate_events.c.orig 2014-05-20 06:05:31 UTC >++++ src/generate_events.c >+@@ -147,7 +147,7 @@ void generate_relative_motion_event2(int xMove, int yM >+ /* my own (first?) line algorithm, not as good as Bresenham's line algorithm, >+ though. Not very good. */ >+ void generate_relative_motion_event(int xpps, int ypps) { >+- int i = 0, x = 0, y = 0, delay = 0, xdelay, ydelay; >++ int i = 0, x = 0, y = 0, delay, xdelay, ydelay; >+ int axpps = abs(xpps), aypps = abs(ypps); >+ if (axpps < 1000) { x = make1(xpps); } >+ else { x = xpps / 1000; }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
beyert
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 261826
:
231675
|
232156
|
233979
| 233984