1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fix: clang compiler warnings

This commit is contained in:
Steffen Vogel 2017-07-25 11:57:22 +02:00
parent e9ebbed9db
commit 7b61a71b93

View file

@ -7,6 +7,7 @@
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#include <math.h>
#include <criterion/criterion.h>
#include <criterion/options.h>
@ -158,7 +159,7 @@ Test(fpga, xsg, .description = "XSG: multiply_add")
cr_assert_eq(ret, 0, "Failed to to ping pong DMA transfer: %d", ret);
for (int i = 0; i < 6; i++)
err += abs(factor * src[i] - dst[i]);
err += fabs(factor * src[i] - dst[i]);
info("Error after FPGA operation: err = %f", err);
@ -400,4 +401,4 @@ Test(fpga, rtds_rtt, .description = "RTDS: tight rtt")
ret = dma_free(ip, &buf);
cr_assert_eq(ret, 0, "Failed to release DMA memory");
}
}