diff options
author | Jeroen Roovers <jer@gentoo.org> | 2018-10-02 15:32:01 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2018-10-02 15:33:04 +0200 |
commit | c191801ff491f6e9058e7c2fc511c9672b04f1dc (patch) | |
tree | 618b1259567ac1b83ff1bcf0d8a4d7e5a59751ad /net-libs/libssh/files | |
parent | media-sound/lollypop: New package (diff) | |
download | gentoo-c191801ff491f6e9058e7c2fc511c9672b04f1dc.tar.gz gentoo-c191801ff491f6e9058e7c2fc511c9672b04f1dc.tar.bz2 gentoo-c191801ff491f6e9058e7c2fc511c9672b04f1dc.zip |
net-libs/libssh: Fix compile error on HPPA
Package-Manager: Portage-2.3.50, Repoman-2.3.11
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-libs/libssh/files')
-rw-r--r-- | net-libs/libssh/files/libssh-0.8.3-strict-overflow.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/net-libs/libssh/files/libssh-0.8.3-strict-overflow.patch b/net-libs/libssh/files/libssh-0.8.3-strict-overflow.patch new file mode 100644 index 000000000000..93b15ec061b8 --- /dev/null +++ b/net-libs/libssh/files/libssh-0.8.3-strict-overflow.patch @@ -0,0 +1,21 @@ +Neither i nor j are ever counted downward for the array pointers, so assume +they were intended to be signed integers. + +Fixes a compiler warning on HPPA triggering an error because of +-Werror=strict-overflow -Wstrict-overflow=2: + +src/connect.c:509:7: error: assuming signed overflow does not occur when +simplifying conditional to constant [-Werror=strict-overflow] + if(j != 0) + ^ +--- a/src/connect.c ++++ b/src/connect.c +@@ -471,7 +471,7 @@ + fd_set *readfds, struct timeval *timeout) { + fd_set origfds; + socket_t fd; +- int i,j; ++ unsigned int i,j; + int rc; + int base_tm, tm; + struct ssh_timestamp ts; |