Removed compilation warnings when compiling with pedantic switch