summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@bitmath.se>2021-12-07 21:13:36 +0100
committerHenrik Rydberg <rydberg@bitmath.se>2021-12-07 21:13:54 +0100
commit2ed588eccf83728452ce0fc30770e637a7c1374f (patch)
treec713aaef27db57422f2a2d38b2abfe10072ef284
parent25d541d2b0b526eba58fee99ceac202acca6d4a2 (diff)
downloadmtdev-git-master.tar.gz
Fix test warningsHEADmaster
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 <rydberg@bitmath.se>
-rw-r--r--test/mtdev-matching.c4
1 files changed, 2 insertions, 2 deletions
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,