Merge pull request #1815 from trufae/fix-build

Fix warning about Unused variables
This commit is contained in:
lazymio 2022-01-06 20:31:46 +01:00 committed by GitHub
commit 667f45d5a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

3
cs.c
View File

@ -535,9 +535,6 @@ static int str_replace(char *result, char *target, const char *str1, char *str2)
static void fill_insn(struct cs_struct *handle, cs_insn *insn, char *buffer, MCInst *mci,
PostPrinter_t postprinter, const uint8_t *code)
{
#ifndef CAPSTONE_DIET
char *sp, *mnem;
#endif
uint16_t copy_size = MIN(sizeof(insn->bytes), insn->size);
// fill the instruction bytes.