[llvm-commits] [llvm] r110527 - /llvm/trunk/lib/Support/PrettyStackTrace.cpp

Eric Christopher echristo at apple.com
Sat Aug 7 17:00:34 PDT 2010


Author: echristo
Date: Sat Aug  7 19:00:34 2010
New Revision: 110527

URL: http://llvm.org/viewvc/llvm-project?rev=110527&view=rev
Log:
Fix a couple of warnings.

Modified:
    llvm/trunk/lib/Support/PrettyStackTrace.cpp

Modified: llvm/trunk/lib/Support/PrettyStackTrace.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/PrettyStackTrace.cpp?rev=110527&r1=110526&r2=110527&view=diff
==============================================================================
--- llvm/trunk/lib/Support/PrettyStackTrace.cpp (original)
+++ llvm/trunk/lib/Support/PrettyStackTrace.cpp Sat Aug  7 19:00:34 2010
@@ -72,7 +72,7 @@
 
 /// 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 @@
 #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();
   }





More information about the llvm-commits mailing list