From fa67ad73a6af202b9edf7a1ff5ceee297e95aa81 Mon Sep 17 00:00:00 2001 From: Kan-Ru Chen Date: Fri, 28 Aug 2015 11:24:47 +0800 Subject: [PATCH] Bug 1199068 - Soothe a unused variable warning in TestSplayTree.cpp. r=nfroyd --- mfbt/tests/TestSplayTree.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mfbt/tests/TestSplayTree.cpp b/mfbt/tests/TestSplayTree.cpp index 0fd37b69f01..31b3bb3f21a 100644 --- a/mfbt/tests/TestSplayTree.cpp +++ b/mfbt/tests/TestSplayTree.cpp @@ -7,6 +7,7 @@ #include "mozilla/ArrayUtils.h" #include "mozilla/Assertions.h" #include "mozilla/SplayTree.h" +#include "mozilla/unused.h" using mozilla::SplayTree; using mozilla::SplayTreeNode; @@ -118,6 +119,8 @@ static SplayTree testNoCopy; int main() { + mozilla::unused << testNoCopy; + SplayTree tree; MOZ_RELEASE_ASSERT(tree.empty());