[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

An unexpected effect of new 'deprecated' tags.

From: Karl Fogel <kfogel_at_red-bean.com>
Date: Wed, 27 Aug 2008 23:44:38 -0400

The new 'deprecated' tags produce a slew of warnings in our build now.
That's great -- in some places we're still using deprecated functions,
and those places need to be fixed.

But even after we fix them all, there will still be warnings from the
compatibility wrapper functions. For example, imagine these:


How would we usually implement that compatibility stack? Like this:

   svn_foo_bar5() { ...; }
   svn_foo_bar4() { return svn_foo_bar5(); }
   svn_foo_bar3() { return svn_foo_bar4(); }
   svn_foo_bar2() { return svn_foo_bar3(); }
   svn_foo_bar() { return svn_foo_bar2(); }

The discerning reader will spot the problem immediately :-).

Now, what do we do to avoid being spammed with compilation warnings
for the rest of our lives? Just always reimplement everything in
terms of the newest function? Ick. Or is there some way to mark
calls as known-and-okay, so they won't cause a compilation warning?


To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-08-28 05:44:53 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.