Skip to content

Commit

Permalink
Fix some windows-specific diagnostics.
Browse files Browse the repository at this point in the history
The Windows toolchain has `-Wunused-variable` and `-Wunused-result` disabled. Clean up code that triggers these, in preparation for enabling them, as they are already enabled on other platforms.

PiperOrigin-RevId: 715679816
  • Loading branch information
Mozc team authored and hiroyuki-komatsu committed Jan 15, 2025
1 parent 0f478e8 commit 280c06e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/base/win32/win_sandbox.cc
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,6 @@ std::wstring Sid::GetName() const {
}

std::wstring Sid::GetAccountName() const {
wchar_t *ptr = nullptr;
DWORD name_size = 0;
DWORD domain_name_size = 0;
SID_NAME_USE name_use;
Expand Down
1 change: 0 additions & 1 deletion src/ipc/win32_ipc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,6 @@ IPCErrorType RecvIpcMessage(HANDLE device_handle, HANDLE read_wait_handle,
return IPC_READ_ERROR;
}
// Actually this is an async operation. Let's wait for its completion.
bool has_more_data = false;
const IPCErrorType result = SafeWaitOverlappedResult(
device_handle, nullptr, absl::ToInt64Milliseconds(timeout), &overlapped,
&num_bytes_read, read_type_ack);
Expand Down

0 comments on commit 280c06e

Please sign in to comment.