fixed compiler warnings not being enabled in clang