[PATCH]: New warning option -Walloca

Ian Lance Taylor iant@google.com
Tue Sep 18 05:48:00 GMT 2007

DJ Delorie <dj@redhat.com> writes:

> "Raksit Ashok" <raksit.ashok@gmail.com> writes:
> > Following your advice, Dave, I have implemented a more general
> > warning: -Wdisallowed-function-list=foo,bar,alloca,... : emit warning
> > on calls to these functions.
> What about -Werror-disallowed-functions-list=... ?  That makes it act
> like all (most?) of the other -W options.

It seems to me that most of the -W options support -Werror=foo to turn
them into an error.  By analogy, -Werror=disallowed-functions-list
should turn the warning into an error.  I'm not sure what
-Werror-disallowed-functions-list would do.


More information about the Gcc-patches mailing list