summarylogtreecommitdiffstats
path: root/fix-gcc-error.patch
diff options
context:
space:
mode:
authorAlexandre Bouvier2021-04-21 22:56:14 +0200
committerAlexandre Bouvier2021-04-21 22:56:14 +0200
commit43725c56abaee947c29c00346b78c1530dd4c00c (patch)
tree7ff295e97f573014ab8165f2b6252c165ab8a204 /fix-gcc-error.patch
downloadaur-43725c56abaee947c29c00346b78c1530dd4c00c.tar.gz
version 1.3
Diffstat (limited to 'fix-gcc-error.patch')
-rw-r--r--fix-gcc-error.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/fix-gcc-error.patch b/fix-gcc-error.patch
new file mode 100644
index 000000000000..64aef603282a
--- /dev/null
+++ b/fix-gcc-error.patch
@@ -0,0 +1,22 @@
+From 5958f42a364c430b3ed4ac68911bbbea1f967fc4 Mon Sep 17 00:00:00 2001
+From: paulyc <paulyc@quetzalcoatl.us>
+Date: Fri, 29 Jan 2021 08:09:01 -0500
+Subject: [PATCH] GCC 10.2 is picky about the signdedness of switch cases
+
+---
+ linux_src/p7zip_4.65/CPP/Windows/Error.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/linux_src/p7zip_4.65/CPP/Windows/Error.cpp b/linux_src/p7zip_4.65/CPP/Windows/Error.cpp
+index 88008d7..e3ad9a4 100644
+--- a/linux_src/p7zip_4.65/CPP/Windows/Error.cpp
++++ b/linux_src/p7zip_4.65/CPP/Windows/Error.cpp
+@@ -13,7 +13,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 ;