first warning message informs about --no-warning
restructured warning/error functions