fix disasm.cpp unused variable warnings, clean up a bit
Merge pull request #8612 from JuliaLang/jcb/fixdisasmwarn

Fix unused variable warning in disasm.cpp