Bug 1409382 - EnumSet.h - Initialize mVersion to silence a warning with gcc 8. r=froydnj, a=ritu
authorSylvestre Ledru <sledru@mozilla.com>
Tue, 17 Oct 2017 15:19:16 +0200
changeset 432591 d4e212a2b1e1180c245dd528c39500991de311ad
parent 432590 e0d56de2214bf49e23d5a9f80a8899ebbb464c77
child 432592 be62e8e756ba5b95455fbd4f1a11b44bae8e3912
push id8002
push userryanvm@gmail.com
push dateWed, 18 Oct 2017 18:59:59 +0000
treeherdermozilla-beta@d4e212a2b1e1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj, ritu
bugs1409382
milestone57.0
Bug 1409382 - EnumSet.h - Initialize mVersion to silence a warning with gcc 8. r=froydnj, a=ritu MozReview-Commit-ID: CfTs6IAP1z5
mfbt/EnumSet.h
--- a/mfbt/EnumSet.h
+++ b/mfbt/EnumSet.h
@@ -330,15 +330,15 @@ private:
     mVersion++;
 #endif
   }
 
   static const size_t kMaxBits = 32;
   uint32_t mBitField;
 
 #ifdef DEBUG
-  uint64_t mVersion;
+  uint64_t mVersion = 0;
 #endif
 };
 
 } // namespace mozilla
 
 #endif /* mozilla_EnumSet_h_*/