mute an MSVC warning about an assignment in a conditional expression

This commit is contained in:
Anonymissimus 2011-06-05 01:50:56 +00:00
parent 12d6def214
commit cfdf2558cd

View file

@ -184,6 +184,10 @@ node::node(document& doc, node* parent) :
{
}
#ifdef _MSC_VER
#pragma warning (push)
#pragma warning (disable: 4706)
#endif
node::node(document& doc, node* parent, const char** str, int depth) :
doc_(&doc),
attr_(),
@ -267,13 +271,14 @@ node::node(document& doc, node* parent, const char** str, int depth) :
throw error("found stray quotes in unquoted value");
goto read_attribute;
}
end = s;
for(;;)
{
// Read until the first single double quote.
while((end = strchr(end+1, '"')) && end[1] == '"') {
#ifdef _MSC_VER
#pragma warning (pop)
#endif
++end;
}
if(end == NULL)