Fix some compiler warnings that clang emits with -pedantic.

Andres Freund