commit | 8c2e2db84eaa7fd293f24a66afba34cf51d04bba | [log] [tgz] |
---|---|---|
author | Nguyen Anh Quynh <aquynh@gmail.com> | Wed May 14 07:32:56 2014 +0800 |
committer | Nguyen Anh Quynh <aquynh@gmail.com> | Wed May 14 07:32:56 2014 +0800 |
tree | c24f8592cec14f426d569daf8a63e80dd95bbe57 | |
parent | 928e113aebaae09c707c6d5a7f737feadee30e6b [diff] [blame] |
fix an warning on unused local variable in fill-insn() when CAPSTONE_DIET is defined
diff --git a/cs.c b/cs.c index 35264f4..c037de5 100644 --- a/cs.c +++ b/cs.c
@@ -244,7 +244,9 @@ 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; +#endif if (handle->detail) { // avoiding copy insn->detail