Skip to content

Commit

Permalink
fix unused variable compiler warning (JuliaLang#32892)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski authored Aug 14, 2019
1 parent df1ee8c commit a6275b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ccall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1494,6 +1494,7 @@ static jl_cgval_t emit_ccall(jl_codectx_t &ctx, jl_value_t **args, size_t nargs)

// some special functions
bool isVa = nreqargs > 0;
(void)isVa; // prevent compiler warning
if (is_libjulia_func(jl_array_ptr)) {
assert(lrt == T_size);
assert(!isVa && !llvmcall && nccallargs == 1);
Expand Down

0 comments on commit a6275b6

Please sign in to comment.