Add t/no-warn.t and remove warn() from code