Introduce show warning flag.

Close #1267.
I think this is fine....