Files
gentoo/dev-libs/cyberjack/files/cyberjack-3.99.5_p14-gcc10.patch
Conrad Kostecki 29b4ca712f 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>
2020-06-19 23:55:51 +02:00

14 lines
344 B
Diff

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;