Fix uninitialised values causing all warnings treated as errors.

Also update test that fails now because of such warning in the output.
Merge pull request #1185 from jimis/parser_errs_on_warnings

Fix uninitialised values causing all warnings treated as errors.