diff --git a/src/cli.cpp b/src/cli.cpp index 2f40036..1f756a5 100644 --- a/src/cli.cpp +++ b/src/cli.cpp @@ -311,6 +311,7 @@ bool are_perms_required(const VM::enum_flags flag) { default: return false; } #else + (void)flag; return false; #endif } diff --git a/src/vmaware.hpp b/src/vmaware.hpp index edb8099..8a7798e 100644 --- a/src/vmaware.hpp +++ b/src/vmaware.hpp @@ -1739,7 +1739,6 @@ struct VM { auto is_event_log_hyperv = []() -> bool { std::wstring logName = L"Microsoft-Windows-Kernel-PnP/Configuration"; std::vector searchStrings = { L"Virtual_Machine", L"VMBUS" }; - return (util::query_event_logs(logName, searchStrings)); }; @@ -1753,6 +1752,8 @@ struct VM { if (result) { core_debug("HYPER_X: root partition returned true"); } + + return result; };