summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2020-06-19 23:55:51 +0200
committerConrad Kostecki <conikost@gentoo.org>2020-06-19 23:55:51 +0200
commit29b4ca712f67c29c464c3f62922e7532d1b1df29 (patch)
tree50a46f060fddd5ee27dbac13d3ca47390820b251 /dev-libs/cyberjack/files
parentapp-misc/lcd4linux: update python plugin to python3 (diff)
downloadgentoo-29b4ca712f67c29c464c3f62922e7532d1b1df29.tar.gz
gentoo-29b4ca712f67c29c464c3f62922e7532d1b1df29.tar.bz2
gentoo-29b4ca712f67c29c464c3f62922e7532d1b1df29.zip
dev-libs/cyberjack: add patch for gcc10
Add a proper patch for compiling with gcc10. Closes: https://bugs.gentoo.org/722962 Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-libs/cyberjack/files')
-rw-r--r--dev-libs/cyberjack/files/cyberjack-3.99.5_p14-gcc10.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-libs/cyberjack/files/cyberjack-3.99.5_p14-gcc10.patch b/dev-libs/cyberjack/files/cyberjack-3.99.5_p14-gcc10.patch
new file mode 100644
index 000000000000..a91ee2e2ba42
--- /dev/null
+++ b/dev-libs/cyberjack/files/cyberjack-3.99.5_p14-gcc10.patch
@@ -0,0 +1,13 @@
+Fixes compilation with GCC10.
+
+--- a/ifd/ifd.cpp
++++ b/ifd/ifd.cpp
+@@ -958,7 +958,7 @@
+ else
+ l_atrLength=0;
+ rj=r->IfdPower(mode, Atr, &l_atrLength);
+- switch (rj) {
++ switch (static_cast<NTSTATUS>(rj)) {
+ case STATUS_SUCCESS:
+ DEBUGLUN(Lun, DEBUG_MASK_IFD, "Success (ATR: %d bytes)\n", (int)l_atrLength);
+ rc=IFD_SUCCESS;