This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Re[2]: Why "'X' used but never defined" is a warning and not error in gcc?
On 8 October 2012 11:32, Ilya Basin wrote:
> Is there a flag to turn this warning into an error? Is there a common
> way to find the warning flag from a message?
If you use a modern version of GCC it tells you the flag that controls
each warning.
In this case it tells you it is "enabled by default" so there is no
flag controlling this warning.