base_cpp: removed warnings from function implementation when building with clang