Skip to content

Commit

Permalink
schnorrsig bench: Suppress a stupid warning in MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
real-or-random committed Jun 29, 2022
1 parent 09f3d71 commit bd81f41
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/modules/schnorrsig/bench_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ void run_schnorrsig_bench(int iters, int argc, char** argv) {
free((void *)data.msgs[i]);
free((void *)data.sigs[i]);
}
free(data.keypairs);
free(data.pk);
free(data.msgs);
free(data.sigs);

/* Casting to (void *) avoids a stupid warning in MSVC. */
free((void *)data.keypairs);
free((void *)data.pk);
free((void *)data.msgs);
free((void *)data.sigs);

secp256k1_context_destroy(data.ctx);
}
Expand Down

0 comments on commit bd81f41

Please sign in to comment.