From 71f9332bd3574ca816a6b4af46a933ba41e3e522 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 6 Jun 2019 12:40:15 +0200 Subject: [PATCH] test/TestCircularBuffer: add `constexpr` to fix -Wvla --- test/TestCircularBuffer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/TestCircularBuffer.cxx b/test/TestCircularBuffer.cxx index 77d6e447f..210db93d6 100644 --- a/test/TestCircularBuffer.cxx +++ b/test/TestCircularBuffer.cxx @@ -8,7 +8,7 @@ TEST(CircularBuffer, Basic) { - static size_t N = 8; + constexpr size_t N = 8; int data[N]; CircularBuffer buffer(data, N);