fixing clang -pedantic warnings