Move PROTO.warn above its first use, fixes #16