aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2024-11-14 20:25:43 +0000
committerAndrzej Janik <[email protected]>2024-11-14 20:25:43 +0000
commit54311575330b76732624e641db980056f81ba42c (patch)
tree37f16bcc1a9a18f23396fc5eb19b425b429f3fb6
parentc6e8c6a48a2d7463f2d55ecf537c4ab4477077f2 (diff)
downloadZLUDA-54311575330b76732624e641db980056f81ba42c.tar.gz
ZLUDA-54311575330b76732624e641db980056f81ba42c.zip
Silence LLVM warnings on Linux
-rw-r--r--llvm_zluda/src/lib.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm_zluda/src/lib.cpp b/llvm_zluda/src/lib.cpp
index 072f773..c8ac2d7 100644
--- a/llvm_zluda/src/lib.cpp
+++ b/llvm_zluda/src/lib.cpp
@@ -1,7 +1,10 @@
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <llvm-c/Core.h>
#include <llvm/IR/IRBuilder.h>
#include <llvm/IR/Type.h>
#include <llvm/IR/Instructions.h>
+#pragma GCC diagnostic pop
using namespace llvm;
@@ -189,7 +192,8 @@ void LLVMZludaBuildFence(LLVMBuilderRef B, LLVMAtomicOrdering Ordering,
auto builder = llvm::unwrap(B);
LLVMContext &context = builder->getContext();
builder->CreateFence(mapFromLLVMOrdering(Ordering),
- context.getOrInsertSyncScopeID(scope));
+ context.getOrInsertSyncScopeID(scope),
+ Name);
}
LLVM_C_EXTERN_C_END \ No newline at end of file