diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-09-16 12:01:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-16 12:01:55 +0200 |
commit | 08dd8ff76063097d7ceea3ec2877028e57ede211 (patch) | |
tree | 467ec1506f7889c2faeb0280b8c7de4adc4abe7b /js/src/gc/GCInternals.h | |
parent | 351ffa462d2314c4b60369e2ba0f13b5d90f03b5 (diff) | |
parent | 0712ac7f81a455b21e0065b6a212b64385835e5e (diff) | |
download | UXP-08dd8ff76063097d7ceea3ec2877028e57ede211.tar UXP-08dd8ff76063097d7ceea3ec2877028e57ede211.tar.gz UXP-08dd8ff76063097d7ceea3ec2877028e57ede211.tar.lz UXP-08dd8ff76063097d7ceea3ec2877028e57ede211.tar.xz UXP-08dd8ff76063097d7ceea3ec2877028e57ede211.zip |
Merge pull request #767 from trav90/class-memaccess-errors
Fix more -Wclass-memaccess warnings (part 2)
Diffstat (limited to 'js/src/gc/GCInternals.h')
-rw-r--r-- | js/src/gc/GCInternals.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/js/src/gc/GCInternals.h b/js/src/gc/GCInternals.h index 4919b87a5..e8df0bb70 100644 --- a/js/src/gc/GCInternals.h +++ b/js/src/gc/GCInternals.h @@ -9,7 +9,6 @@ #include "mozilla/ArrayUtils.h" #include "mozilla/Maybe.h" -#include "mozilla/PodOperations.h" #include "jscntxt.h" @@ -102,9 +101,9 @@ struct TenureCountCache static const size_t EntryShift = 4; static const size_t EntryCount = 1 << EntryShift; - TenureCount entries[EntryCount]; + TenureCount entries[EntryCount] = {}; // zeroes - TenureCountCache() { mozilla::PodZero(this); } + TenureCountCache() = default; HashNumber hash(ObjectGroup* group) { #if JS_BITS_PER_WORD == 32 |