pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
tmux: Address -Wint-conversion warnings
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Tue Sep 4 10:13:58 2018 +0200
Changeset: d841d4dbbf0ffa497867f9c4c77abea850796030
Modified Files:
tmux/distinfo
Added Files:
tmux/patches/patch-tty-term.c
Log Message:
tmux: Address -Wint-conversion warnings
Apply a patch from NetBSD to address -Wint-conversion warnings when
calling tparm().
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d841d4dbbf0ffa497867f9c4c77abea850796030
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
tmux/distinfo | 1 +
tmux/patches/patch-tty-term.c | 24 ++++++++++++++++++++++++
2 files changed, 25 insertions(+)
diffs:
diff --git a/tmux/distinfo b/tmux/distinfo
index 8277b63003..78574ab70d 100644
--- a/tmux/distinfo
+++ b/tmux/distinfo
@@ -6,3 +6,4 @@ SHA512 (tmux-2.8-rc.tar.gz) = 3e961450c7ce48671a4ccf7f053e4387c02b677f308531f78d
Size (tmux-2.8-rc.tar.gz) = 491679 bytes
SHA1 (patch-Makefile.in) = fa9ec654cf6dad2b49b10ab981275d193d8b97c8
SHA1 (patch-server-client.c) = a0949d4fdba20aaffce6cd56eedd47b7cc64e1bc
+SHA1 (patch-tty-term.c) = 486b64b5762a35986ca39a93efd1d29a79920193
diff --git a/tmux/patches/patch-tty-term.c b/tmux/patches/patch-tty-term.c
new file mode 100644
index 0000000000..e894ddbe44
--- /dev/null
+++ b/tmux/patches/patch-tty-term.c
@@ -0,0 +1,24 @@
+$NetBSD$
+
+Address -Wint-conversion warnings and properly cast to intptr_t,
+from NetBSD external/bsd/tmux/dist/tty-term.c,-r1.5 by <christos>.
+
+--- tty-term.c.orig 2018-07-27 13:01:14.000000000 +0000
++++ tty-term.c
+@@ -616,14 +616,14 @@ tty_term_string3(struct tty_term *term,
+ const char *
+ tty_term_ptr1(struct tty_term *term, enum tty_code_code code, const void *a)
+ {
+- return (tparm((char *) tty_term_string(term, code), a, 0, 0, 0, 0, 0, 0, 0, 0));
++ return (tparm((char *) tty_term_string(term, code), (intptr_t)a, 0, 0, 0, 0, 0, 0, 0, 0));
+ }
+
+ const char *
+ tty_term_ptr2(struct tty_term *term, enum tty_code_code code, const void *a,
+ const void *b)
+ {
+- return (tparm((char *) tty_term_string(term, code), a, b, 0, 0, 0, 0, 0, 0, 0));
++ return (tparm((char *) tty_term_string(term, code), (intptr_t)a, (intptr_t)b, 0, 0, 0, 0, 0, 0, 0));
+ }
+
+ int
Home |
Main Index |
Thread Index |
Old Index