mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
Add more initializers to quiet a clang warning
Summary: `struct crashreporter_annotations_t` gained one more `uint64_t` field in `CRASHREPORTER_ANNOTATIONS_VERSION` 5 causing an annoying clang warning: ``` llvm/lib/Support/PrettyStackTrace.cpp:92:65: warning: missing field 'abort_cause' initializer [-Wmissing-field-initializers] = { CRASHREPORTER_ANNOTATIONS_VERSION, 0, 0, 0, 0, 0, 0 }; ^ 1 warning generated ``` Let's fix it. Patch by Roman Tereshin Reviewers: qcolombet, echristo, beanz, dexonsmith Reviewed By: echristo Subscribers: dsanders, dexonsmith, beanz, echristo, qcolombet, llvm-commits Differential Revision: https://reviews.llvm.org/D42268 llvm-svn: 323777
This commit is contained in:
parent
2aa581dfc0
commit
3683524ce7
@ -88,7 +88,11 @@ extern "C" {
|
|||||||
CRASH_REPORTER_CLIENT_HIDDEN
|
CRASH_REPORTER_CLIENT_HIDDEN
|
||||||
struct crashreporter_annotations_t gCRAnnotations
|
struct crashreporter_annotations_t gCRAnnotations
|
||||||
__attribute__((section("__DATA," CRASHREPORTER_ANNOTATIONS_SECTION)))
|
__attribute__((section("__DATA," CRASHREPORTER_ANNOTATIONS_SECTION)))
|
||||||
|
#if CRASHREPORTER_ANNOTATIONS_VERSION < 5
|
||||||
= { CRASHREPORTER_ANNOTATIONS_VERSION, 0, 0, 0, 0, 0, 0 };
|
= { CRASHREPORTER_ANNOTATIONS_VERSION, 0, 0, 0, 0, 0, 0 };
|
||||||
|
#else
|
||||||
|
= { CRASHREPORTER_ANNOTATIONS_VERSION, 0, 0, 0, 0, 0, 0, 0 };
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#elif defined(__APPLE__) && HAVE_CRASHREPORTER_INFO
|
#elif defined(__APPLE__) && HAVE_CRASHREPORTER_INFO
|
||||||
extern "C" const char *__crashreporter_info__
|
extern "C" const char *__crashreporter_info__
|
||||||
|
Loading…
Reference in New Issue
Block a user