Just remember to turn it off in production code
If you don't want to change your production code, and:
it runs from the command-line
and if you have warnings turned on:
redirect standard-error to a file;
run splain on the file, to generate the same report as diagnostics.
see manpage for details.