Commit b019deea authored by Brad King's avatar Brad King
Browse files

RegularExpression: Suppress VS 2013 warning C4351

The compiler warns on use of `{}` initialization of array members:

    warning C4351: new behavior: elements of array '...' will be
                   default initialized
parent 846a83f3
......@@ -66,6 +66,13 @@ private:
const char* searchstring;
};
#ifdef _MSC_VER
# pragma warning(push)
# if _MSC_VER < 1900
# pragma warning(disable : 4351) /* new behavior */
# endif
#endif
/**
* \brief Creates an invalid match object
*/
......@@ -76,6 +83,10 @@ inline RegularExpressionMatch::RegularExpressionMatch()
{
}
#ifdef _MSC_VER
# pragma warning(pop)
#endif
/**
* \brief Returns true if the match pointers are valid
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment