In an ideal world, a script would check that no warnings* are introduced just as our tests check correctness and make lint checks style. This would be integrated into whatever continuous integration we rig up.
*other than the warnings we have made our peace with, such as tmpnam.