diff options
author | Max Kellermann <max@musicpd.org> | 2019-06-06 12:40:15 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-06-06 12:40:32 +0200 |
commit | 71f9332bd3574ca816a6b4af46a933ba41e3e522 (patch) | |
tree | 6bc3749e3d25874819da5a31986318df89c71568 /test/TestCircularBuffer.cxx | |
parent | 3eae3a2826000317269bd6c0b8714d559ed72343 (diff) |
test/TestCircularBuffer: add `constexpr` to fix -Wvla
Diffstat (limited to 'test/TestCircularBuffer.cxx')
-rw-r--r-- | test/TestCircularBuffer.cxx | 2 |
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); |