summaryrefslogtreecommitdiffstats
path: root/mfbt
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-08-13 18:52:43 +0200
committerGitHub <noreply@github.com>2018-08-13 18:52:43 +0200
commitba2882cf71d06e121b7a023f954388768a5964dd (patch)
tree70f1e0754b0bd39151721c248c3d2328f53ae71d /mfbt
parent727eefc7c4f2b9197dc26d298340a12ca4feae36 (diff)
parent9b48c3fa58c4926341e1668fdfec131ada3147a1 (diff)
downloadUXP-ba2882cf71d06e121b7a023f954388768a5964dd.tar
UXP-ba2882cf71d06e121b7a023f954388768a5964dd.tar.gz
UXP-ba2882cf71d06e121b7a023f954388768a5964dd.tar.lz
UXP-ba2882cf71d06e121b7a023f954388768a5964dd.tar.xz
UXP-ba2882cf71d06e121b7a023f954388768a5964dd.zip
Merge pull request #706 from trav90/gcc8
Fix/silence some warnings with GCC 8
Diffstat (limited to 'mfbt')
-rw-r--r--mfbt/EnumSet.h2
-rw-r--r--mfbt/tests/TestTypeTraits.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/mfbt/EnumSet.h b/mfbt/EnumSet.h
index 5282ab30c..b18b5a769 100644
--- a/mfbt/EnumSet.h
+++ b/mfbt/EnumSet.h
@@ -335,7 +335,7 @@ private:
uint32_t mBitField;
#ifdef DEBUG
- uint64_t mVersion;
+ uint64_t mVersion = 0;
#endif
};
diff --git a/mfbt/tests/TestTypeTraits.cpp b/mfbt/tests/TestTypeTraits.cpp
index f0a565142..eb412bc54 100644
--- a/mfbt/tests/TestTypeTraits.cpp
+++ b/mfbt/tests/TestTypeTraits.cpp
@@ -70,8 +70,8 @@ static_assert(!IsPointer<IsPointerTest>::value,
"IsPointerTest not a pointer");
static_assert(IsPointer<IsPointerTest*>::value,
"IsPointerTest* is a pointer");
-static_assert(!IsPointer<bool(IsPointerTest::*)>::value,
- "bool(IsPointerTest::*) not a pointer");
+static_assert(!IsPointer<bool(IsPointerTest::*)()>::value,
+ "bool(IsPointerTest::*)() not a pointer");
static_assert(!IsPointer<void(IsPointerTest::*)(void)>::value,
"void(IsPointerTest::*)(void) not a pointer");