diff options
author | Eric Christopher <echristo@apple.com> | 2010-08-08 00:00:34 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-08-08 00:00:34 +0000 |
commit | 87947f77296acea490dcb72bc8d56107b9bf3464 (patch) | |
tree | cf0639be143d87f9d0c3eef5ab83738c84b55c85 /llvm/lib/Support/PrettyStackTrace.cpp | |
parent | aab1fda91f93b5d863b1e4e61aff541199ab56fc (diff) | |
download | bcm5719-llvm-87947f77296acea490dcb72bc8d56107b9bf3464.tar.gz bcm5719-llvm-87947f77296acea490dcb72bc8d56107b9bf3464.zip |
Fix a couple of warnings.
llvm-svn: 110527
Diffstat (limited to 'llvm/lib/Support/PrettyStackTrace.cpp')
-rw-r--r-- | llvm/lib/Support/PrettyStackTrace.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Support/PrettyStackTrace.cpp b/llvm/lib/Support/PrettyStackTrace.cpp index a99ab2f30df..3c8a10849d1 100644 --- a/llvm/lib/Support/PrettyStackTrace.cpp +++ b/llvm/lib/Support/PrettyStackTrace.cpp @@ -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(); } |