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:
parent
e9ebbed9db
commit
7b61a71b93
1 changed files with 3 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue