[llvm] 0923aaf - [llvm-c-test] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 14 22:29:11 PDT 2025
Author: Kazu Hirata
Date: 2025-08-14T22:29:05-07:00
New Revision: 0923aafcf9159735934fb936f9ba36121a40fe4d
URL: https://github.com/llvm/llvm-project/commit/0923aafcf9159735934fb936f9ba36121a40fe4d
DIFF: https://github.com/llvm/llvm-project/commit/0923aafcf9159735934fb936f9ba36121a40fe4d.diff
LOG: [llvm-c-test] Fix a warning
This patch fixes:
llvm/tools/llvm-c-test/debuginfo.c:447:27: error: unused variable
'ME' [-Werror,-Wunused-variable]
Added:
Modified:
llvm/tools/llvm-c-test/debuginfo.c
Removed:
################################################################################
diff --git a/llvm/tools/llvm-c-test/debuginfo.c b/llvm/tools/llvm-c-test/debuginfo.c
index 3fddd0287f1ac..16bc8186102b6 100644
--- a/llvm/tools/llvm-c-test/debuginfo.c
+++ b/llvm/tools/llvm-c-test/debuginfo.c
@@ -446,6 +446,7 @@ int llvm_add_globaldebuginfo(void) {
size_t numEntries;
LLVMValueMetadataEntry *ME = LLVMGlobalCopyAllMetadata(Global, &numEntries);
assert(ME != NULL);
+ (void)ME;
assert(numEntries == 2);
LLVMDisposeDIBuilder(Builder);
More information about the llvm-commits
mailing list