g++ no longer ignoring some warning flags?

Alexandre Oliva oliva@lsd.ic.unicamp.br
Thu Sep 23 10:00:00 GMT 1999


On Sep 23, 1999, Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> wrote:

> On Thu, 23 Sep 1999, Kaveh R. Ghazi wrote:

>>> cc1plus: Invalid option `-Wbad-function-cast'

>> Can we please restore the old behavior?

> Please don't!

> With the old behavior g++ would simply ignore these unsupported options
> silently, making the user believe that they *were* actually supported.

OTOH, issuing errors for flags we used to accept is not much of a
backward-compatible change.

> We could issue warnings instead of errors, but being silent in that case
> is not a good solution, IMHO.

A warning seems a good idea.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them



More information about the Gcc-bugs mailing list