Sun WorkShop Compiler C 5.0 User's Guide

-err=warn

Treats all warnings as errors. The result is that both errors and warnings cause lint to exit with a failure status.