fix C++ warnings

--HG--
extra : amend_source : 04828c16faf5af6bf7203a7ae59ad1f365cb5699