From 71645e4c8c478be085b65434b206f6749904933e Mon Sep 17 00:00:00 2001 From: Benson Muite Date: Sun, 29 Nov 2020 20:19:32 +0300 Subject: [PATCH] FIX(plugin): initialize array to prevent warning When building on CentOS 8 with default flags which includes Wall flag, build stops because array n[3] is not initialized. Initialize it to have all values to be zero. --- plugins/ut99/ut99.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ut99/ut99.cpp b/plugins/ut99/ut99.cpp index 004becbf0..108e0bc65 100644 --- a/plugins/ut99/ut99.cpp +++ b/plugins/ut99/ut99.cpp @@ -62,7 +62,7 @@ static void norm(float *a) { } static bool correctFront(float *front, float *top) { - float n[3]; + float n[3] = {0}; if (top[1] < 0) { front[0] *= -1;