wordlist.c: avoid compiler warnings for debug builds

This fixes issue #659.