Merge pull request #50 from advmach/gcc-10-warning-fix

Fix 3 compilation warnings with GCC 10 when using -Og optimization (-Og is for easier debugging)