Fix warnings with -Wall -Wextra -Wno-unused-parameter