fixes compiler warnings
Merge pull request #9124 from ricardoquesada/compiler_warnings

fixes compiler warnings