Fixed clang warnings in C interface