[Xapian-tickets] [Xapian] #816: expand/ortermlist.cc:166:12: warning: duplicated 'if' condition

Xapian nobody at xapian.org
Tue Oct 26 05:10:55 BST 2021


#816: expand/ortermlist.cc:166:12: warning: duplicated 'if' condition
--------------------+-------------------------------
 Reporter:  dcb     |             Owner:  Olly Betts
     Type:  defect  |            Status:  closed
 Priority:  normal  |         Milestone:  1.4.19
Component:  Other   |           Version:  1.4.17
 Severity:  normal  |        Resolution:  fixed
 Keywords:          |        Blocked By:
 Blocking:          |  Operating System:  All
--------------------+-------------------------------
Changes (by Olly Betts):

 * status:  assigned => closed
 * resolution:   => fixed

Comment:

 Backported that fix for 1.4.19 in
 6694111e3a5e1d076ce209fe0cd28d40a4eb4d44.

 I've also added code to enable `-Wduplicated-cond` (and also
 `-Wduplicated-branches`) if using a GCC version which is new enough in
 d00d879ad6edb7474b9c2ca452c29c0792be1994, and backported that in
 cd4152fd5173cabf7763bcd69e0bf7cccbe75bf0.
-- 
Ticket URL: <https://trac.xapian.org/ticket/816#comment:5>
Xapian <https://xapian.org/>
Xapian


More information about the Xapian-tickets mailing list