ARM: fix several warnings
Merge pull request #1088 from mehlis/arm-warnings

ARM: fix several warnings