summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-08-08 00:00:34 +0000
committerEric Christopher <echristo@apple.com>2010-08-08 00:00:34 +0000
commit371e5774c7cc4e78338d9da9dbcdcd9bb8785c1c (patch)
treeab83cfe6d91405c143afe559c3d60447195da2c2 /lib
parent7f99f74b7fc298dad4c61c15b064dc951d2b3cbb (diff)
downloadllvm-371e5774c7cc4e78338d9da9dbcdcd9bb8785c1c.tar.gz
llvm-371e5774c7cc4e78338d9da9dbcdcd9bb8785c1c.tar.bz2
llvm-371e5774c7cc4e78338d9da9dbcdcd9bb8785c1c.tar.xz
Fix a couple of warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110527 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/PrettyStackTrace.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Support/PrettyStackTrace.cpp b/lib/Support/PrettyStackTrace.cpp
index a99ab2f30d..3c8a10849d 100644
--- a/lib/Support/PrettyStackTrace.cpp
+++ b/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();
}