Additionally report warnings in the "check:syntax" task

Like assigned but unused variables, unreachable statements, ...

The warning does not make the check fail, but can be usable to report some places which need to improve.