Fix a couple of warnings.

llvm-svn: 110527
This commit is contained in:
Eric Christopher 2010-08-08 00:00:34 +00:00
parent aab1fda91f
commit 87947f7729
1 changed files with 3 additions and 2 deletions

View File

@ -72,7 +72,7 @@ asm(".desc ___crashreporter_info__, 0x10");
/// CrashHandler - This callback is run if a fatal signal is delivered to the
/// process, it prints the pretty stack trace.
static void CrashHandler(void *Cookie) {
static void CrashHandler(void *) {
#ifndef __APPLE__
// On non-apple systems, just emit the crash stack trace to stderr.
PrintCurStackTrace(errs());
@ -89,7 +89,8 @@ static void CrashHandler(void *Cookie) {
#ifndef HAVE_CRASHREPORTERCLIENT_H
__crashreporter_info__ = strdup(std::string(TmpStr.str()).c_str());
#else
CRSetCrashLogMessage(std::string(TmpStr.str()).c_str());
// Cast to void to avoid warning.
(void)CRSetCrashLogMessage(std::string(TmpStr.str()).c_str());
#endif
errs() << TmpStr.str();
}