fix compilation warnings
Merge pull request #4 from Bkjolly/cm-12.0

fix compilation warnings