mirror of
https://github.com/microsoft/PowerToys
synced 2025-08-31 22:45:32 +00:00
[Analyzers][CPP] turn on Warning 4100 (#21449)
* Analyzers CPP Changing the warning level from 3 to 4. change some project files to make them use the warning config in cpp props file. * Analyzers C++ turn on warning 4706 Change Cpp.Build.props file to enable 4706 fix BugReportTool code to get rid of 4706 * Turn on warning 4100 and fix the code * Follow c++ core guidelines * Adapting to PR comments
This commit is contained in:
@@ -86,7 +86,7 @@ std::optional<std::wstring> dispatch_json_action_to_module(const json::JsonObjec
|
||||
else if (action == L"restart_maintain_elevation")
|
||||
{
|
||||
// this was added to restart and maintain elevation, which is needed after settings are change from outside the normal process.
|
||||
// since a normal PostQuitMessage(0) would usually cause this process to save it's in memory settings to disk, we need to
|
||||
// since a normal PostQuitMessage(0) would usually cause this process to save it's in memory settings to disk, we need to
|
||||
// send a PostQuitMessage(1) and check for that on exit, and skip the settings-flush.
|
||||
auto loaded = PTSettingsHelper::load_general_settings();
|
||||
|
||||
@@ -462,7 +462,7 @@ LExit:
|
||||
#define MAX_TITLE_LENGTH 100
|
||||
void bring_settings_to_front()
|
||||
{
|
||||
auto callback = [](HWND hwnd, LPARAM data) -> BOOL {
|
||||
auto callback = [](HWND hwnd, LPARAM /*data*/) -> BOOL {
|
||||
DWORD processId;
|
||||
if (GetWindowThreadProcessId(hwnd, &processId) && processId == g_settings_process_id)
|
||||
{
|
||||
|
Reference in New Issue
Block a user