diff options
| author | Henrik Rydberg <rydberg@bitmath.se> | 2021-12-07 21:13:36 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@bitmath.se> | 2021-12-07 21:13:54 +0100 |
| commit | 2ed588eccf83728452ce0fc30770e637a7c1374f (patch) | |
| tree | c713aaef27db57422f2a2d38b2abfe10072ef284 /test | |
| parent | 25d541d2b0b526eba58fee99ceac202acca6d4a2 (diff) | |
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 <rydberg@bitmath.se>
Diffstat (limited to 'test')
| -rw-r--r-- | test/mtdev-matching.c | 4 |
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; | |||
| 36 | 36 | ||
| 37 | static void test1() | 37 | static void test1() |
| 38 | { | 38 | { |
| 39 | int A[] = { | 39 | int A[DIM2_FINGER] = { |
| 40 | 1013, | 40 | 1013, |
| 41 | 3030660, | 41 | 3030660, |
| 42 | 3559354, | 42 | 3559354, |
| @@ -62,7 +62,7 @@ static void test1() | |||
| 62 | 62 | ||
| 63 | static void test2() | 63 | static void test2() |
| 64 | { | 64 | { |
| 65 | int A[] = { | 65 | int A[DIM2_FINGER] = { |
| 66 | 0, | 66 | 0, |
| 67 | 4534330, | 67 | 4534330, |
| 68 | 22653552, | 68 | 22653552, |
