From 54311575330b76732624e641db980056f81ba42c Mon Sep 17 00:00:00 2001 From: Andrzej Janik Date: Thu, 14 Nov 2024 20:25:43 +0000 Subject: Silence LLVM warnings on Linux --- llvm_zluda/src/lib.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 #include #include #include +#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 -- cgit v1.2.3