Restrict nonewline warning to when nonewline is enabled