From 2ed588eccf83728452ce0fc30770e637a7c1374f Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Tue, 7 Dec 2021 21:13:36 +0100 Subject: Fix test warnings The unit tests were using stack-allocated memory smaller than the maximum matrix size, causing compiler warnings. Fixed with this patch. Signed-off-by: Henrik Rydberg --- test/mtdev-matching.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/mtdev-matching.c') diff --git a/test/mtdev-matching.c b/test/mtdev-matching.c index 0f3f6ea..9dff0f3 100644 --- a/test/mtdev-matching.c +++ b/test/mtdev-matching.c @@ -36,7 +36,7 @@ static const int n2 = 4; static void test1() { - int A[] = { + int A[DIM2_FINGER] = { 1013, 3030660, 3559354, @@ -62,7 +62,7 @@ static void test1() static void test2() { - int A[] = { + int A[DIM2_FINGER] = { 0, 4534330, 22653552, -- cgit v1.2.1