[Xapian-tickets] [Xapian] #461: api_replicate.cc doesn't compile under Visual C++

Xapian nobody at xapian.org
Wed Mar 31 17:04:29 BST 2010


#461: api_replicate.cc doesn't compile under Visual C++
-------------------------------+--------------------------------------------
 Reporter:  charliejuggler     |       Owner:  olly     
     Type:  defect             |      Status:  new      
 Priority:  normal             |   Milestone:           
Component:  Test Suite         |     Version:  SVN trunk
 Severity:  normal             |   Blockedby:           
 Platform:  Microsoft Windows  |    Blocking:           
-------------------------------+--------------------------------------------
 The function truncated_copy contains a buffer allocated in a way Visual
 C++ doesn't like, giving the errors:

 {{{
 .\api_replicate.cc(110) : error C2057: expected constant expression
 .\api_replicate.cc(110) : error C2466: cannot allocate an array of
 constant size
  0
 .\api_replicate.cc(110) : error C2133: 'buf' : unknown size
 }}}

 A malloc should fix this.

-- 
Ticket URL: <http://trac.xapian.org/ticket/461>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list