Remove unused variables
Fix the definition of badsector_magic to fix a compilation warning
Merge pull request #47 from pfrouleau/review/fix_compilation_warnings

Review/fix compilation warnings