
Fixes the following build failure when building with gcc 11: 478 ../../../../CPP/7zip/Archive/Wim/WimHandler.cpp: In member function 'virtual LONG NArchive::NWim::CHandler::GetArchiveProperty(PROPID, PROPVARIANT*)': >> 479 ../../../../CPP/7zip/Archive/Wim/WimHandler.cpp:308:11: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17 480 308 | numMethods++; 481 | ^~~~~~~~~~ >> 482 ../../../../CPP/7zip/Archive/Wim/WimHandler.cpp:318:9: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17 483 318 | numMethods++; 484 | ^~~~~~~~~~
23 lines
780 B
Diff
23 lines
780 B
Diff
diff --git a/CPP/7zip/Archive/Wim/WimHandler.cpp b/CPP/7zip/Archive/Wim/WimHandler.cpp
|
|
index 27d3298..673d52e 100644
|
|
--- a/CPP/7zip/Archive/Wim/WimHandler.cpp
|
|
+++ b/CPP/7zip/Archive/Wim/WimHandler.cpp
|
|
@@ -305,7 +305,7 @@ STDMETHODIMP CHandler::GetArchiveProperty(PROPID propID, PROPVARIANT *value)
|
|
{
|
|
res.Add_Space_if_NotEmpty();
|
|
res += k_Methods[i];
|
|
- numMethods++;
|
|
+ numMethods = true;
|
|
}
|
|
}
|
|
|
|
@@ -315,7 +315,7 @@ STDMETHODIMP CHandler::GetArchiveProperty(PROPID propID, PROPVARIANT *value)
|
|
ConvertUInt32ToString(methodUnknown, temp);
|
|
res.Add_Space_if_NotEmpty();
|
|
res += temp;
|
|
- numMethods++;
|
|
+ numMethods = true;
|
|
}
|
|
|
|
if (numMethods == 1 && chunkSizeBits != 0)
|