C++ User's Guide

-xwe

Converts all warnings to errors by returning nonzero exit status.