Fixed compiler warnings in clang