1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

Remove -Wunused-result and -Wpedantic warnings from GCC. NFC.

This commit is contained in:
Michael Liao 2020-12-02 10:51:45 -05:00
parent fbc2c5ae27
commit 48788ed811
2 changed files with 4 additions and 4 deletions

View File

@ -170,9 +170,9 @@ void llvm::report_bad_alloc_error(const char *Reason, bool GenCrashDiag) {
// an OOM to stderr and abort. // an OOM to stderr and abort.
const char *OOMMessage = "LLVM ERROR: out of memory\n"; const char *OOMMessage = "LLVM ERROR: out of memory\n";
const char *Newline = "\n"; const char *Newline = "\n";
(void)::write(2, OOMMessage, strlen(OOMMessage)); (void)!::write(2, OOMMessage, strlen(OOMMessage));
(void)::write(2, Reason, strlen(Reason)); (void)!::write(2, Reason, strlen(Reason));
(void)::write(2, Newline, strlen(Newline)); (void)!::write(2, Newline, strlen(Newline));
abort(); abort();
#endif #endif
} }

View File

@ -77,7 +77,7 @@ static Value *findStoredValue(Value *AllocaValue) {
if (!Store) if (!Store)
return nullptr; return nullptr;
return Store->getValueOperand(); return Store->getValueOperand();
}; }
TEST_F(OpenMPIRBuilderTest, CreateBarrier) { TEST_F(OpenMPIRBuilderTest, CreateBarrier) {
OpenMPIRBuilder OMPBuilder(*M); OpenMPIRBuilder OMPBuilder(*M);