mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-24 09:29:42 +00:00
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
This commit is contained in:
parent
de0ae8f83d
commit
dd2fdd81bc
@ -69,7 +69,8 @@ void llvm::report_fatal_error(const Twine &Reason) {
|
|||||||
raw_svector_ostream OS(Buffer);
|
raw_svector_ostream OS(Buffer);
|
||||||
OS << "LLVM ERROR: " << Reason << "\n";
|
OS << "LLVM ERROR: " << Reason << "\n";
|
||||||
StringRef MessageStr = OS.str();
|
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
|
// If we reached here, we are failing ungracefully. Run the interrupt handlers
|
||||||
|
Loading…
Reference in New Issue
Block a user