Fix warnings in GCC 4.8.2 and in Clang