mirror of
https://github.com/chromium/crashpad.git
synced 2025-01-14 01:08:01 +08:00
Mark Mentovai
408262d58f
Fix MinidumpMiscInfoWriter test compilation with 32-bit time_t.
This produced errors such as: minidump_misc_info_writer_test.cc:665:32: error: non-constant-expression cannot be narrowed from type 'uint32_t' (aka 'unsigned int') to '__darwin_time_t' (aka 'long') in initializer list [-Wc++11-narrowing] const timeval kStartTime = { expect_misc_info.ProcessCreateTime, 0 }; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ minidump_misc_info_writer_test.cc:665:32: note: override this message by inserting an explicit cast const timeval kStartTime = { expect_misc_info.ProcessCreateTime, 0 }; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static_cast<__darwin_time_t>( ) TEST=minidump_test MinidumpMiscInfoWriter.InitializeFromSnapshot R=rsesek@chromium.org Review URL: https://codereview.chromium.org/711603002
Description
Languages
C++
92.6%
Objective-C++
2.5%
C
2%
Python
1.7%
Assembly
0.9%
Other
0.3%