[Xapian-discuss] Revision 13824 compilation failure

henka at cityweb.co.za henka at cityweb.co.za
Thu Jan 14 12:54:56 GMT 2010


> On Thu, Jan 14, 2010 at 10:19:52AM +0200, henka at cityweb.co.za wrote:
>> Anyway, now using CXXFLAGS=-W on configure to suppress -Werror.
>
> I'm surprised that works

Yup.

> ./configure CXXFLAGS='-g -O2 -Wno-error'
>
> Or alternatively you can override when you run make:
>
> make CXXFLAGS='-g -O2 -Wno-error'
>
> Oh, unless the warning is one which only gets reported if optimisation is
> on - your approach disables optimisation so will disable such warnings.

Ah, I'll certainly stick -O2 back in.

> What's the warning?  It may be something worth fixing.

Errors such as:

./common/pack.h: In member function ‘virtual std::string
BrassDatabaseReplicator::apply_changeset_from_conn(RemoteConnection&,
const OmTime&, bool) const’:
./common/pack.h:332: warning: ‘len’ may be used uninitialized in this
function

I seem to recall 'len' not being init'd in other areas as well.

In fact, on all the machines where I compile xapian, uninitialized
warnings are the only messages I've seen; nothing more serious.  I figured
you already knew about these (since they stop compilation), so didn't
bother reporting them.

btw, is there anything missing for http://trac.xapian.org/ticket/422?

Regards
Henry



More information about the Xapian-discuss mailing list