Turning warning "returning reference to temporary" into error?
Zack Weinberg
zack@codesourcery.com
Mon May 12 18:57:00 GMT 2003
Richard Guenther <rguenth@tat.physik.uni-tuebingen.de> writes:
> I really want this to be diagnosed at compile time, and as this is a
> large project, I want to have an error diagnosed, not only a
> warning. In the current form this is not possible without turning
> every default warning into an error with -Werror.
Probably your best bet is to help out the people working on generic
warning controls. If we can have a "suppress this specific warning"
toggle, we can have a "turn this specific warning into an error"
toggle too.
zw
More information about the Gcc
mailing list