From ed0f91ba6ff793cfa604c589c404146ed0f4c8a2 Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Thu, 14 Sep 2017 12:58:57 +0200 Subject: [PATCH] =?utf8?q?fix=20compile=20error:=20"error:=20variable-size?= =?utf8?q?d=20object=20=E2=80=98red=5Fdata=E2=80=99=20may=20not=20be=20ini?= =?utf8?q?tialized"?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ycbcr_input_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ycbcr_input_test.cpp b/ycbcr_input_test.cpp index deece92..92ef33b 100644 --- a/ycbcr_input_test.cpp +++ b/ycbcr_input_test.cpp @@ -1031,8 +1031,8 @@ private: // Basically the same test as EffectChainTest_MipmapGenerationWorks, // just with the data converted to Y'CbCr (as red only). TEST(EffectChainTest, MipmapGenerationWorks) { - unsigned width = 4; - unsigned height = 16; + const unsigned width = 4; + const unsigned height = 16; float red_data[width * height] = { // In 4x4 blocks. 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, -- 2.39.2