summaryrefslogtreecommitdiff
path: root/test/TestCircularBuffer.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-06-06 12:40:15 +0200
committerMax Kellermann <max@musicpd.org>2019-06-06 12:40:32 +0200
commit71f9332bd3574ca816a6b4af46a933ba41e3e522 (patch)
tree6bc3749e3d25874819da5a31986318df89c71568 /test/TestCircularBuffer.cxx
parent3eae3a2826000317269bd6c0b8714d559ed72343 (diff)
test/TestCircularBuffer: add `constexpr` to fix -Wvla
Diffstat (limited to 'test/TestCircularBuffer.cxx')
-rw-r--r--test/TestCircularBuffer.cxx2
1 files changed, 1 insertions, 1 deletions
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<int> buffer(data, N);