From 7859bf8bf75d460e3afd58a0677f2e065ec1e6d1 Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Wed, 3 Oct 2012 19:52:21 -0700 Subject: [PATCH] Bug 796212 followup: add #ifdef guard around static variables that are only used in #ifdef'd code, to fix build warning in non-MOZ_FLEXBOX-enabled builds. --- layout/base/nsLayoutUtils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layout/base/nsLayoutUtils.cpp b/layout/base/nsLayoutUtils.cpp index c7e4173f02f..1630ee0c0db 100644 --- a/layout/base/nsLayoutUtils.cpp +++ b/layout/base/nsLayoutUtils.cpp @@ -110,12 +110,14 @@ typedef FrameMetrics::ViewID ViewID; static ViewID sScrollIdCounter = FrameMetrics::START_SCROLL_ID; +#ifdef MOZ_FLEXBOX // These are indices into kDisplayKTable. They'll be initialized // the first time that FlexboxEnabledPrefChangeCallback() is invoked. static int32_t sIndexOfFlexInDisplayTable; static int32_t sIndexOfInlineFlexInDisplayTable; // This tracks whether those ^^ indices have been initialized static bool sAreFlexKeywordIndicesInitialized = false; +#endif // MOZ_FLEXBOX typedef nsDataHashtable ContentMap; static ContentMap* sContentMap = nullptr;