Fix compilation warnings in HEX code.