diff options
| author | CoprDistGit <infra@openeuler.org> | 2025-01-05 09:09:39 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2025-01-05 09:09:39 +0000 |
| commit | f0cc2d5d65b0d4595195a491111fa221d6d186ae (patch) | |
| tree | 56b2a1f4b6fe9ee584b0be6e7c9d530b7d90fd4c /fix-build-failed-with-gcc-10.patch | |
| parent | 919a5c04b265d82abe8ebb56227f0f9e42dbf625 (diff) | |
automatic import of p7zipopeneuler22.03_LTS_SP4
Diffstat (limited to 'fix-build-failed-with-gcc-10.patch')
| -rw-r--r-- | fix-build-failed-with-gcc-10.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/fix-build-failed-with-gcc-10.patch b/fix-build-failed-with-gcc-10.patch new file mode 100644 index 0000000..d80dcb9 --- /dev/null +++ b/fix-build-failed-with-gcc-10.patch @@ -0,0 +1,34 @@ +From 063cd89c047e924b24405737c892fbcbaf51ba6b Mon Sep 17 00:00:00 2001 +From: sunguoshuai <sunguoshuai@huawei.com> +Date: Fri, 30 Jul 2021 16:08:30 +0800 +Subject: [PATCH] fix build failed with gcc 10 + +--- + CPP/Windows/ErrorMsg.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/CPP/Windows/ErrorMsg.cpp b/CPP/Windows/ErrorMsg.cpp +index 99684ae..7949880 100644 +--- a/CPP/Windows/ErrorMsg.cpp ++++ b/CPP/Windows/ErrorMsg.cpp +@@ -13,7 +13,7 @@ UString MyFormatMessage(DWORD errorCode) + const char * txt = 0; + AString msg; + +- switch(errorCode) { ++ switch(HRESULT(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 ; +@@ -43,7 +43,7 @@ bool MyFormatMessage(DWORD messageID, CSysString &message) + const char * txt = 0; + AString msg; + +- switch(messageID) { ++ switch(HRESULT(messageID)) { + case ERROR_NO_MORE_FILES : txt = "No more files"; break ; + case E_NOTIMPL : txt = "E_NOTIMPL"; break ; + case E_NOINTERFACE : txt = "E_NOINTERFACE"; break ; +-- +2.30.0 + |
