зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1135535 part 2 - Fix C4067 unexpected token in js/src and mark this warning an error on MSVC. r=luke
Fix warning: js/src/frontend/Parser.cpp(2571) : error C4067: unexpected tokens following preprocessor directive - expected a newline --HG-- extra : rebase_source : 306de2dd08d4ae6cd5cd2c3d98253834af30e91d extra : source : a92c239aab4f18bed4df0f5581152862c5e75740
This commit is contained in:
Родитель
ac32ade601
Коммит
79b28e6f04
|
@ -2568,7 +2568,7 @@ Parser<ParseHandler>::functionArgsAndBodyGeneric(Node pn, HandleFunction fun, Fu
|
||||||
}
|
}
|
||||||
funbox->bufEnd = pos().begin + 1;
|
funbox->bufEnd = pos().begin + 1;
|
||||||
} else {
|
} else {
|
||||||
#if not JS_HAS_EXPR_CLOSURES
|
#if !JS_HAS_EXPR_CLOSURES
|
||||||
MOZ_ASSERT(kind == Arrow);
|
MOZ_ASSERT(kind == Arrow);
|
||||||
#endif
|
#endif
|
||||||
if (tokenStream.hadError())
|
if (tokenStream.hadError())
|
||||||
|
|
|
@ -498,6 +498,7 @@ if CONFIG['_MSC_VER']:
|
||||||
# But given the conversion from bool is specified, and this is a
|
# But given the conversion from bool is specified, and this is a
|
||||||
# pattern widely used in code in js/src, suppress this warning here.
|
# pattern widely used in code in js/src, suppress this warning here.
|
||||||
CXXFLAGS += ['-wd4805']
|
CXXFLAGS += ['-wd4805']
|
||||||
|
CXXFLAGS += ['-we4067']
|
||||||
|
|
||||||
if CONFIG['OS_ARCH'] not in ('WINNT', 'HP-UX'):
|
if CONFIG['OS_ARCH'] not in ('WINNT', 'HP-UX'):
|
||||||
OS_LIBS += [
|
OS_LIBS += [
|
||||||
|
|
Загрузка…
Ссылка в новой задаче