summaryrefslogtreecommitdiffstats
path: root/mojo/public/cpp/system/tests/macros_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/public/cpp/system/tests/macros_unittest.cc')
-rw-r--r--mojo/public/cpp/system/tests/macros_unittest.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/mojo/public/cpp/system/tests/macros_unittest.cc b/mojo/public/cpp/system/tests/macros_unittest.cc
index 99b158d..f884baa 100644
--- a/mojo/public/cpp/system/tests/macros_unittest.cc
+++ b/mojo/public/cpp/system/tests/macros_unittest.cc
@@ -67,6 +67,7 @@ static_assert(MOJO_ARRAYSIZE(kGlobalArray) == 5u,
TEST(MacrosCppTest, ArraySize) {
double local_array[4] = {6.7, 7.8, 8.9, 9.0};
+ MOJO_ALLOW_UNUSED_LOCAL(local_array);
EXPECT_EQ(4u, MOJO_ARRAYSIZE(local_array));
}