Unbreak build - fix for clang 6.0.
rsadowski significantly simplified the initial fix. Thanks! Maintainer (Josh Grosse) ok. OK rsadowski@
This commit is contained in:
parent
7ee94eb614
commit
1800f8017e
@ -1,10 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.43 2017/11/25 13:27:48 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.44 2018/04/09 15:58:26 bket Exp $
|
||||
|
||||
COMMENT-main= file archiver with high compression ratio
|
||||
COMMENT-rar= rar modules for p7zip
|
||||
|
||||
V= 16.02
|
||||
REVISION-main= 3
|
||||
REVISION-main= 4
|
||||
REVISION-rar= 1
|
||||
DISTNAME= p7zip_${V}_src_all
|
||||
PKGNAME= p7zip-${V}
|
||||
|
14
archivers/p7zip/patches/patch-CPP_Windows_ErrorMsg_cpp
Normal file
14
archivers/p7zip/patches/patch-CPP_Windows_ErrorMsg_cpp
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-CPP_Windows_ErrorMsg_cpp,v 1.1 2018/04/09 15:58:26 bket Exp $
|
||||
|
||||
Index: CPP/Windows/ErrorMsg.cpp
|
||||
--- CPP/Windows/ErrorMsg.cpp.orig
|
||||
+++ CPP/Windows/ErrorMsg.cpp
|
||||
@@ -13,7 +13,7 @@ UString MyFormatMessage(DWORD errorCode)
|
||||
const char * txt = 0;
|
||||
AString msg;
|
||||
|
||||
- switch(errorCode) {
|
||||
+ switch(static_cast<int>(errorCode)) {
|
||||
case ERROR_NO_MORE_FILES : txt = "No more files"; break ;
|
||||
case E_NOTIMPL : txt = "E_NOTIMPL"; break ;
|
||||
case E_NOINTERFACE : txt = "E_NOINTERFACE"; break ;
|
Loading…
Reference in New Issue
Block a user