silence some maybe-uninitialized warnings on gcc

They appear when `-O2` is enabled.