summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2018-09-08 00:26:24 +0300
committerAlon Bar-Lev <alonbl@gentoo.org>2018-09-08 00:26:46 +0300
commit26457956de258b73a69556b983f74f31b25b2a36 (patch)
tree644e3d2a040c7f50729b146967902439065289f7
parentprofiles: (Re-)Add arm 17.0 profiles with new *hf tuples (diff)
downloadgentoo-26457956de258b73a69556b983f74f31b25b2a36.tar.gz
gentoo-26457956de258b73a69556b983f74f31b25b2a36.tar.bz2
gentoo-26457956de258b73a69556b983f74f31b25b2a36.zip
dev-libs/opensc: fix -Werror and ctapi USE
Closes: https://bugs.gentoo.org/show_bug.cgi?id=665464 Package-Manager: Portage-2.3.40, Repoman-2.3.9
-rw-r--r--dev-libs/opensc/files/opensc-0.18.0-build.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-libs/opensc/files/opensc-0.18.0-build.patch b/dev-libs/opensc/files/opensc-0.18.0-build.patch
index 342abd83eb0..1db749ca654 100644
--- a/dev-libs/opensc/files/opensc-0.18.0-build.patch
+++ b/dev-libs/opensc/files/opensc-0.18.0-build.patch
@@ -64,3 +64,37 @@ index e85dfc45..13b0cc21 100644
--
2.16.4
+From 0f7af8a647a8fca6b1f1ee2327c3d26bed38c8f6 Mon Sep 17 00:00:00 2001
+From: Alon Bar-Lev <alon.barlev@gmail.com>
+Date: Sat, 8 Sep 2018 00:16:57 +0300
+Subject: [PATCH] reader-ctapi: ctapi_connect: remove unused variable
+
+from day 1 return value of _sc_parse_atr was ignored.
+---
+ src/libopensc/reader-ctapi.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/src/libopensc/reader-ctapi.c b/src/libopensc/reader-ctapi.c
+index 8d4c1c24..4b94337f 100644
+--- a/src/libopensc/reader-ctapi.c
++++ b/src/libopensc/reader-ctapi.c
+@@ -239,7 +239,6 @@ static int ctapi_connect(sc_reader_t *reader)
+ char rv;
+ u8 cmd[9], rbuf[256], sad, dad;
+ unsigned short lr;
+- int r;
+
+ if (reader->ctx->flags & SC_CTX_FLAG_TERMINATE)
+ return SC_ERROR_NOT_ALLOWED;
+@@ -265,7 +264,7 @@ static int ctapi_connect(sc_reader_t *reader)
+ return SC_ERROR_INTERNAL;
+ reader->atr.len = lr;
+ memcpy(reader->atr.value, rbuf, lr);
+- r = _sc_parse_atr(reader);
++ _sc_parse_atr(reader);
+
+ return 0;
+ }
+--
+2.16.4
+