fix compiler warnings reported in #421
Merge pull request #433 from cgzones/issue_421

fix compiler warnings reported in #421