evaluate warning state during parsing

see issue #146