Commit 8cf080f0 authored by Davide Galassi's avatar Davide Galassi

NOP macro to prevent some warnings and close forgotten va_start

parent 475b703c
Pipeline #65732285 passed with stages
in 2 minutes and 24 seconds
......@@ -51,6 +51,7 @@ int cry_list_init(cry_list_elem_init_f init, cry_list_elem_clear_f clear,
break;
}
}
va_end(copy);
return res;
}
......
......@@ -8,6 +8,9 @@
#include <stdint.h>
#include <stdarg.h>
/** Nop to prevent some warnings */
#define NOP do {} while (0)
/** Statically get array number of elements */
#define CRY_ARRAY_LEN(ar) (sizeof(ar)/sizeof((ar)[0]))
......
......@@ -13,7 +13,7 @@ int cry_mpi_load_bin(cry_mpi *x, const void *buf, size_t size)
/* skip leading zeros */
for (; size > 0 && *p == 0; p++, size--)
;
NOP;
if (size == 0)
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment