Warnings fixes (#541)

* Warnings fixes

* Warnings fixes
This commit is contained in:
¥IGA 2024-08-23 21:38:55 +02:00 committed by GitHub
parent fda2fdae69
commit 0c5b91e1fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 15 additions and 113 deletions

View file

@ -124,7 +124,7 @@ private:
using FuncReturn = typename std::invoke_result<Func, ImageId, Image&>::type;
static constexpr bool BOOL_BREAK = std::is_same_v<FuncReturn, bool>;
boost::container::small_vector<ImageId, 32> images;
ForEachPage(cpu_addr, size, [this, &images, cpu_addr, size, func](u64 page) {
ForEachPage(cpu_addr, size, [this, &images, func](u64 page) {
const auto it = page_table.find(page);
if (it == nullptr) {
if constexpr (BOOL_BREAK) {