commit 2f45f67a91b98d9e7603b8bb402af3c664e3e245
parent e53f136921c99b5609b5b884a72d5714b0c384fb
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 15 Jul 2022 14:02:07 +0200
Fix a compilation warning
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/test_s3d_closest_point.c b/src/test_s3d_closest_point.c
@@ -1005,7 +1005,8 @@ test_single_triangle(struct s3d_device* dev)
FOR_EACH(j, 0, 1000) {
float proj[3]; /* Projection of pos on the line */
- float AP[3], BP[3], CP[3], closest[3], tmp[3];
+ float AP[3], BP[3], CP[3], tmp[3];
+ float closest[3] = {0,0,0};
float u, v, w, h, x, dist, d;
/* Randomly generate a pos not on the triangle