Skip to content

Commit

Permalink
Silence some warnings in tr_compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
fwsGonzo committed Jul 3, 2024
1 parent 89afb22 commit eb7ddce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/libriscv/tr_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ namespace riscv
extern void tcc_close(void* state);
extern void* tcc_lookup(void* state, const char*);

void* dylib_lookup(void* dylib, const char* symbol, bool is_libtcc)
void* dylib_lookup(void* dylib, const char* symbol, [[maybe_unused]] bool is_libtcc)
{
#ifdef RISCV_LIBTCC
if (is_libtcc) {
Expand All @@ -173,7 +173,7 @@ namespace riscv
return dlsym(dylib, symbol);
}

void dylib_close(void* dylib, bool is_libtcc)
void dylib_close(void* dylib, [[maybe_unused]] bool is_libtcc)
{
#ifdef RISCV_LIBTCC
if (is_libtcc) {
Expand Down

0 comments on commit eb7ddce

Please sign in to comment.