test/TestCircularBuffer: add `constexpr` to fix -Wvla

This commit is contained in:
Max Kellermann 2019-06-06 12:40:15 +02:00
parent 3eae3a2826
commit 71f9332bd3
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
TEST(CircularBuffer, Basic) TEST(CircularBuffer, Basic)
{ {
static size_t N = 8; constexpr size_t N = 8;
int data[N]; int data[N];
CircularBuffer<int> buffer(data, N); CircularBuffer<int> buffer(data, N);