Fixed -Wextra warnings on gcc.