зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1167030 - Suppress MSVC warning C4661 in js/src. r=luke
--HG-- extra : rebase_source : b94b81856e61b3a2815cc54e71c63144bff0d291
This commit is contained in:
Родитель
f15ae7d768
Коммит
0a876b9419
|
@ -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);
|
||||
|
|
|
@ -178,7 +178,6 @@ class RegExpParser
|
|||
|
||||
RegExpTree* ParsePattern();
|
||||
RegExpTree* ParseDisjunction();
|
||||
RegExpTree* ParseGroup();
|
||||
RegExpTree* ParseCharacterClass();
|
||||
|
||||
// Parses a {...,...} quantifier and stores the range in the given
|
||||
|
|
|
@ -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'):
|
||||
|
|
Загрузка…
Ссылка в новой задаче