fix log + scan-build with clang version 3.5 (trunk 202405)