gcc: how to not compile with warnings

gcc

Solution

`gcc -Werror`: Make all warnings into errors.

Problem

I would like to know if there is any gcc flag that doesn't compile to an object file, if there are warnings in the respective source file. Thanks.

Original source