Fixed some warnings from clang