[Xapian-tickets] [Xapian] #393: Consider disabling deprecation warnings when building xapian-core

Xapian nobody at xapian.org
Fri Nov 20 12:39:40 GMT 2009


#393: Consider disabling deprecation warnings when building xapian-core
--------------------------+-------------------------------------------------
 Reporter:  james         |       Owner:  olly
     Type:  task          |      Status:  new 
 Priority:  normal        |   Milestone:      
Component:  Build system  |     Version:      
 Severity:  normal        |    Keywords:      
Blockedby:                |    Platform:  All 
 Blocking:                |  
--------------------------+-------------------------------------------------

Comment(by olly):

 It certainly is useful to be warned of uses of deprecated code in xapian-
 core, as otherwise it would linger until we were forced to remove it by
 the removal of the deprecated feature, at which point it's more work due
 to the issues not being fresh in the mind.

 The "dogfood" aspect is also potentially useful - the process of updating
 xapian-core provides some experience of what it is like to migrate away
 from the deprecated feature, which could catch problematic API changes
 before we nail them down in a release.

 So given I'm only aware of this single instance of this being an actual
 problem, and they are potentially useful, I'm hesitant to disable them
 wholesale.

 BTW, I '''think''' you can temporarily disable them when needed with:

 {{{
 #!sh
 make CXXFLAGS=-DXAPIAN_DEPRECATED(X)=X
 }}}

 If that works, we could at least document it.

-- 
Ticket URL: <http://trac.xapian.org/ticket/393#comment:1>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list