[build] warn about stray #?endif in gen-cat.nqp