mirror of
https://github.com/chromium/crashpad.git
synced 2025-01-14 01:08:01 +08:00
fuchsia: Fully initialize TestCrashpadInfo structure
The in-Fuchsia build fails with: ../../third_party/crashpad/snapshot/crashpad_info_size_test_module.cc:89:77: error: missing field 'indirectly_referenced_memory_cap_' initializer [-Werror,-Wmissing-field-initializers] TestCrashpadInfo g_test_crashpad_info = {'CPad', sizeof(TestCrashpadInfo), 1}; kulakowski mentioned in the context of the = {0} CL recently that they've turned on some somewhat unusual warnings because they have a higher-than-usual amount of C code, as well as code that has to build as both C and C++. I think that's where this one comes from. Bug: crashpad:196 Change-Id: Ie1b373a32f99615366c7fcd65cd4ae4761385ff9 Reviewed-on: https://chromium-review.googlesource.com/862802 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Scott Graham <scottmg@chromium.org>
This commit is contained in:
parent
f35799cb41
commit
3a07faf171
@ -86,7 +86,25 @@ __declspec(allocate("CPADinfo"))
|
||||
#else // !defined(OS_POSIX) && !defined(OS_WIN)
|
||||
#error Port
|
||||
#endif // !defined(OS_POSIX) && !defined(OS_WIN)
|
||||
TestCrashpadInfo g_test_crashpad_info = {'CPad', sizeof(TestCrashpadInfo), 1};
|
||||
TestCrashpadInfo g_test_crashpad_info = {'CPad',
|
||||
sizeof(TestCrashpadInfo),
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
nullptr,
|
||||
nullptr,
|
||||
#if !defined(CRASHPAD_INFO_SIZE_TEST_MODULE_SMALL)
|
||||
nullptr,
|
||||
nullptr,
|
||||
#endif // CRASHPAD_INFO_SIZE_TEST_MODULE_SMALL
|
||||
#if defined(CRASHPAD_INFO_SIZE_TEST_MODULE_LARGE)
|
||||
{}
|
||||
#endif // CRASHPAD_INFO_SIZE_TEST_MODULE_LARGE
|
||||
};
|
||||
|
||||
} // namespace
|
||||
} // namespace crashpad
|
||||
|
Loading…
x
Reference in New Issue
Block a user