mirror of
https://github.com/chromium/crashpad.git
synced 2025-01-14 01:08:01 +08:00
Fix enum vs unsigned -Wsign-compare warnings
Recent Clang versions started taking into account that enums are signed on Windows when emitting these warnings. Bug: chromium:792519 Change-Id: I08767fa1f5c8211e663769c7e76b13a1b7146f4f Reviewed-on: https://chromium-review.googlesource.com/813497 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
a4fc880278
commit
914b0d6755
@ -59,7 +59,7 @@ void MinidumpFileWriter::InitializeFromSnapshot(
|
||||
DCHECK_EQ(state(), kStateMutable);
|
||||
DCHECK_EQ(header_.Signature, 0u);
|
||||
DCHECK_EQ(header_.TimeDateStamp, 0u);
|
||||
DCHECK_EQ(header_.Flags, MiniDumpNormal);
|
||||
DCHECK_EQ(static_cast<MINIDUMP_TYPE>(header_.Flags), MiniDumpNormal);
|
||||
DCHECK(streams_.empty());
|
||||
|
||||
// This time is truncated to an integer number of seconds, not rounded, for
|
||||
|
@ -52,7 +52,7 @@ void VerifyMinidumpHeader(const MINIDUMP_HEADER* header,
|
||||
ASSERT_EQ(header->StreamDirectoryRva, streams ? sizeof(MINIDUMP_HEADER) : 0u);
|
||||
EXPECT_EQ(header->CheckSum, 0u);
|
||||
EXPECT_EQ(header->TimeDateStamp, timestamp);
|
||||
EXPECT_EQ(header->Flags, MiniDumpNormal);
|
||||
EXPECT_EQ(static_cast<MINIDUMP_TYPE>(header->Flags), MiniDumpNormal);
|
||||
}
|
||||
|
||||
} // namespace test
|
||||
|
Loading…
x
Reference in New Issue
Block a user