зеркало из https://github.com/mozilla/gecko-dev.git
Bug 978188: Guard 'restartVerifier' member-var decl with the same #ifdef as its usage, to fix clang 'unused-private-field' warning. r=terrence
This commit is contained in:
Родитель
29327d860a
Коммит
dfd2033053
|
@ -316,7 +316,7 @@ WasIncrementalGC(JSRuntime *rt);
|
|||
class JS_FRIEND_API(AutoDisableGenerationalGC)
|
||||
{
|
||||
JSRuntime *runtime;
|
||||
#ifdef JS_GC_ZEAL
|
||||
#if defined(JSGC_GENERATIONAL) && defined(JS_GC_ZEAL)
|
||||
bool restartVerifier;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -932,7 +932,7 @@ JS::DisableIncrementalGC(JSRuntime *rt)
|
|||
|
||||
JS::AutoDisableGenerationalGC::AutoDisableGenerationalGC(JSRuntime *rt)
|
||||
: runtime(rt)
|
||||
#ifdef JS_GC_ZEAL
|
||||
#if defined(JSGC_GENERATIONAL) && defined(JS_GC_ZEAL)
|
||||
, restartVerifier(rt->gcVerifyPostData)
|
||||
#endif
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче