On Sat, Apr 07, 2018 at 05:26:50PM +0200, Bj??rn Ketelaars wrote:
> On Sat 07/04/2018 16:52, Rafael Sadowski wrote:
> > Please use only:
> > 
> > switch(static_cast<int>(errorCode))
> > 
> > ok to that.
> 
> ...which results is a much smaller additional patch. Thanks!
> 
> OK?

Maintainer's OK with the addition of a REVISION bump.
Index: Makefile
===================================================================
RCS file: /systems/cvs/ports/archivers/p7zip/Makefile,v
retrieving revision 1.43
diff -u -p -r1.43 Makefile
--- Makefile    25 Nov 2017 13:27:48 -0000      1.43
+++ Makefile    9 Apr 2018 00:19:44 -0000
@@ -4,7 +4,7 @@ COMMENT-main=   file archiver with high co
 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}
Index: patches/patch-CPP_Windows_ErrorMsg_cpp
===================================================================
RCS file: patches/patch-CPP_Windows_ErrorMsg_cpp
diff -N patches/patch-CPP_Windows_ErrorMsg_cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-CPP_Windows_ErrorMsg_cpp      9 Apr 2018 00:18:46 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+
+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 ;

Reply via email to