mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
Fix a couple of warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110527 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7f99f74b7f
commit
371e5774c7
@ -72,7 +72,7 @@ asm(".desc ___crashreporter_info__, 0x10");
|
|||||||
|
|
||||||
/// CrashHandler - This callback is run if a fatal signal is delivered to the
|
/// CrashHandler - This callback is run if a fatal signal is delivered to the
|
||||||
/// process, it prints the pretty stack trace.
|
/// process, it prints the pretty stack trace.
|
||||||
static void CrashHandler(void *Cookie) {
|
static void CrashHandler(void *) {
|
||||||
#ifndef __APPLE__
|
#ifndef __APPLE__
|
||||||
// On non-apple systems, just emit the crash stack trace to stderr.
|
// On non-apple systems, just emit the crash stack trace to stderr.
|
||||||
PrintCurStackTrace(errs());
|
PrintCurStackTrace(errs());
|
||||||
@ -89,7 +89,8 @@ static void CrashHandler(void *Cookie) {
|
|||||||
#ifndef HAVE_CRASHREPORTERCLIENT_H
|
#ifndef HAVE_CRASHREPORTERCLIENT_H
|
||||||
__crashreporter_info__ = strdup(std::string(TmpStr.str()).c_str());
|
__crashreporter_info__ = strdup(std::string(TmpStr.str()).c_str());
|
||||||
#else
|
#else
|
||||||
CRSetCrashLogMessage(std::string(TmpStr.str()).c_str());
|
// Cast to void to avoid warning.
|
||||||
|
(void)CRSetCrashLogMessage(std::string(TmpStr.str()).c_str());
|
||||||
#endif
|
#endif
|
||||||
errs() << TmpStr.str();
|
errs() << TmpStr.str();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user