fix all sign-compare warnings

This commit is contained in:
Daniel Agar
2018-07-01 09:36:55 +00:00
committed by Lorenz Meier
parent cf74166801
commit 9ce83f2208
54 changed files with 106 additions and 129 deletions
-1
View File
@@ -35,7 +35,6 @@ px4_add_module(
MAIN sd_bench
STACK_MAIN 2500
COMPILE_FLAGS
-Wno-sign-compare # TODO: fix all sign-compare
SRCS
sd_bench.c
DEPENDS
+1 -1
View File
@@ -173,7 +173,7 @@ void write_test(int fd, uint8_t *block, int block_size)
unsigned int max_write_time = 0;
unsigned int fsync_time = 0;
while (hrt_elapsed_time(&start) < run_duration * 1000) {
while ((int64_t)hrt_elapsed_time(&start) < run_duration * 1000) {
hrt_abstime write_start = hrt_absolute_time();
size_t written = write(fd, block, block_size);