[llvm-commits] [llvm] r114072 - /llvm/trunk/lib/Support/ErrorHandling.cpp
Duncan Sands
baldrick at free.fr
Thu Sep 16 01:20:49 PDT 2010
Author: baldrick
Date: Thu Sep 16 03:20:49 2010
New Revision: 114072
URL: http://llvm.org/viewvc/llvm-project?rev=114072&view=rev
Log:
Some versions of gcc still warn about "ignoring return value ... declared
with attribute warn_unused_result" here - suppress the warning harder.
Modified:
llvm/trunk/lib/Support/ErrorHandling.cpp
Modified: llvm/trunk/lib/Support/ErrorHandling.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/ErrorHandling.cpp?rev=114072&r1=114071&r2=114072&view=diff
==============================================================================
--- llvm/trunk/lib/Support/ErrorHandling.cpp (original)
+++ llvm/trunk/lib/Support/ErrorHandling.cpp Thu Sep 16 03:20:49 2010
@@ -69,7 +69,8 @@
raw_svector_ostream OS(Buffer);
OS << "LLVM ERROR: " << Reason << "\n";
StringRef MessageStr = OS.str();
- (void)::write(2, MessageStr.data(), MessageStr.size());
+ ssize_t written = ::write(2, MessageStr.data(), MessageStr.size());
+ (void)written; // If something went wrong, we deliberately just give up.
}
// If we reached here, we are failing ungracefully. Run the interrupt handlers
More information about the llvm-commits
mailing list