improve dupfun & add -26 to warn-error opt