summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrav90 <travawine@protonmail.ch>2018-08-10 15:12:47 -0500
committertrav90 <travawine@protonmail.ch>2018-08-10 15:12:47 -0500
commitf7219526788d3170a5d8de33f7adf13afe38d581 (patch)
treed7d9e6431fc28e41c37798be357e99936ef1dba6
parent3aa84bd5c0c06b0bb6b99f0553cee5a827770ffa (diff)
downloaduxp-f7219526788d3170a5d8de33f7adf13afe38d581.tar.gz
Fix a warning with GCC 8: unnecessary parentheses in declaration of 'type name'
-rw-r--r--mfbt/tests/TestTypeTraits.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mfbt/tests/TestTypeTraits.cpp b/mfbt/tests/TestTypeTraits.cpp
index f0a5651429..eb412bc54c 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");