Fix some warnings from -O0 build
Merge pull request #444 from taka-no-me:fix_o0_warnings