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:
Daniel Holbert 2014-02-28 12:51:08 -08:00
parent fd5c7dc4f7
commit 3dcdba16c0
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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
{