Bug 1167030 - Suppress MSVC warning C4661 in js/src. r=luke

This commit is contained in:
Jan de Mooij 2015-05-22 13:39:59 +02:00
parent 389a133406
commit 4bde946bd4
3 changed files with 5 additions and 2 deletions

View File

@ -693,7 +693,6 @@ class Parser : private JS::AutoGCRooter, public StrictModeGetter
bool checkDestructuringObject(BindData<ParseHandler>* data, Node objectPattern);
bool checkDestructuringArray(BindData<ParseHandler>* data, Node arrayPattern);
bool bindInitialized(BindData<ParseHandler>* data, Node pn);
bool bindDestructuringLHS(Node pn);
bool makeSetCall(Node pn, unsigned msg);
Node cloneDestructuringDefault(Node opn);
Node cloneLeftHandSide(Node opn);

View File

@ -178,7 +178,6 @@ class RegExpParser
RegExpTree* ParsePattern();
RegExpTree* ParseDisjunction();
RegExpTree* ParseGroup();
RegExpTree* ParseCharacterClass();
// Parses a {...,...} quantifier and stores the range in the given

View File

@ -538,6 +538,11 @@ if CONFIG['_MSC_VER']:
# But given the conversion from bool is specified, and this is a
# pattern widely used in code in js/src, suppress this warning here.
CXXFLAGS += ['-wd4805']
# C4661 ("no suitable definition provided for explicit template
# instantiation request") is emitted for all Parser methods that
# have a Parser<FullParseHandler> definition but no
# Parser<SyntaxParseHandler> definition, see bug 1167030.
CXXFLAGS += ['-wd4661']
CXXFLAGS += ['-we4067', '-we4258', '-we4275']
if CONFIG['OS_ARCH'] not in ('WINNT', 'HP-UX'):