Skip to content

Commit

Permalink
[llvm-c-test] Fix unused variable warnings
Browse files Browse the repository at this point in the history
This patch fixes:

  llvm/tools/llvm-c-test/debuginfo.c:211:12: error: unused variable
  'tag0' [-Werror,-Wunused-variable]

  llvm/tools/llvm-c-test/debuginfo.c:222:12: error: unused variable
  'tag1' [-Werror,-Wunused-variable]
  • Loading branch information
kazutakahirata committed Feb 9, 2023
1 parent d160873 commit 2700d66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/tools/llvm-c-test/debuginfo.c
Expand Up @@ -211,6 +211,7 @@ int llvm_get_di_tag(void) {
uint16_t tag0 = LLVMGetDINodeTag(md);

assert(tag0 == 0);
(void)tag0;

const char *filename = "metadata.c";
LLVMDIBuilderRef builder = LLVMCreateDIBuilder(m);
Expand All @@ -222,6 +223,7 @@ int llvm_get_di_tag(void) {
uint16_t tag1 = LLVMGetDINodeTag(decl);

assert(tag1 == 0x13);
(void)tag1;

LLVMDisposeModule(m);

Expand Down

0 comments on commit 2700d66

Please sign in to comment.