[Xapian-devel] str.h warning in MSVC 9.0

Olly Betts olly at survex.com
Tue May 5 14:57:05 BST 2009


On Tue, May 05, 2009 at 02:37:01PM +0100, Olly Betts wrote:
> Unless anyone can explain why this code is a problem, I propose we just
> add 4806 to the list of MSVC warnings to be ignored.

This is the documentation for that warning:

http://msdn.microsoft.com/en-us/library/fx3e68bw(VS.80).aspx

There's no relational operator involved here, so this warning seems to
be misfiring.

I've committed a fix for the swapped parameters to trunk as r12618.
I doubt it will fix the warning unless it is some sort of interaction
with code in an inlined std::string constructor, but it would be
useful to have that confirmed.

Cheers,
    Olly



More information about the Xapian-devel mailing list