[Ns-developers] Deprecated Attribute?
Gustavo Carneiro
gjcarneiro at gmail.com
Tue Jul 22 15:37:15 PDT 2008
2008/7/22 Mathieu Lacage <mathieu.lacage at sophia.inria.fr>:
>
> On Tue, 2008-07-22 at 22:40 +0100, Gustavo Carneiro wrote:
>
>
> > I would not mind but I just realized that I don't understand
> > why we are
> > using that flag. Why are we actually using
> > -Wno-error=deprecated-declarations ?
> >
> > Because we are using -Werror, which would turn deprecation warnings
> > into compilation errors. What would be the point of a deprecation
> > warning if the build would fail anyway? Deprecations are meant to
>
> Yes, but we don't use these deprecated functions ourselves and we want
> to make sure that we _don't_ use them, so, why would we use this flag ?
That depends on how you define "we". If "we" you mean the core ns-3
developers, I might agree with you that build should just fail. But what
about scenarios and models defined by outside developers? Should their
scripts and models stop building every couple of months due to silly method
renames?
Personally, I would say the same thing about -Werror active by default in
released tarballs, but I don't have energy to argue about that as well.
--
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert
More information about the Ns-developers
mailing list