diff options
| author | Duncan Sands <baldrick@free.fr> | 2010-09-16 08:20:49 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2010-09-16 08:20:49 +0000 |
| commit | 31dae488eb2e00c2c29b6ebd15f18d5bd122547a (patch) | |
| tree | cfbbbd6498d9107b6184e638cffe324e9c648179 /lib/Support/ErrorHandling.cpp | |
| parent | 2b95a073a2f93f1babe63e250a73dffb031a745e (diff) | |
| download | external_llvm-31dae488eb2e00c2c29b6ebd15f18d5bd122547a.zip external_llvm-31dae488eb2e00c2c29b6ebd15f18d5bd122547a.tar.gz external_llvm-31dae488eb2e00c2c29b6ebd15f18d5bd122547a.tar.bz2 | |
Some versions of gcc still warn about "ignoring return value ... declared
with attribute warn_unused_result" here - suppress the warning harder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114072 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/ErrorHandling.cpp')
| -rw-r--r-- | lib/Support/ErrorHandling.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Support/ErrorHandling.cpp b/lib/Support/ErrorHandling.cpp index 0b7af3e..839c405 100644 --- a/lib/Support/ErrorHandling.cpp +++ b/lib/Support/ErrorHandling.cpp @@ -69,7 +69,8 @@ void llvm::report_fatal_error(const Twine &Reason) { 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 |
