Followup for bug 649576 GCC 4.3.3 warning.
authorChris Leary <cdleary@mozilla.com>
Sat, 25 Jun 2011 16:35:56 -0700
changeset 72385 7208baa27f172e85d81ad3f81155a4102f354830
parent 72384 3d646df22a4b6280fe7d6bd5c617841eda96c516
child 72386 bf147b22f72c941b8ab007a44a5d0a1120bac2e5
push id159
push usereakhgari@mozilla.com
push dateTue, 16 Aug 2011 17:53:11 +0000
treeherdermozilla-beta@8786e3e49240 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs649576
milestone7.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Followup for bug 649576 GCC 4.3.3 warning.
js/src/mfbt/InlineMap.h
--- a/js/src/mfbt/InlineMap.h
+++ b/js/src/mfbt/InlineMap.h
@@ -333,17 +333,19 @@ class InlineMap
     {
         friend class InlineMap;
 
         WordMapRange    mapRange;
         InlineElem      *cur;
         InlineElem      *end;
         bool            isInline;
 
-        explicit Range(WordMapRange r) : isInline(false) {
+        explicit Range(WordMapRange r)
+          : cur(NULL), end(NULL), /* Avoid GCC 4.3.3 over-warning. */
+            isInline(false) {
             mapRange = r;
             JS_ASSERT(!isInlineRange());
         }
 
         Range(const InlineElem *begin, const InlineElem *end_)
           : cur(const_cast<InlineElem *>(begin)),
             end(const_cast<InlineElem *>(end_)),
             isInline(true) {