Fixed pedantic warnings obtained on GCC and Clang