corrected all warnings brought forward with clang compiler