mavlink: Compile warning fixes
apps: Compile warning fixes
Merge pull request #988 from PX4/warning_fixes_v2

Warning fixes v2