[util] Fix darray test for gcc purity

This commit is contained in:
Bill Currie 2020-03-20 12:55:23 +09:00
parent 38fc7459e4
commit d2f03e8a64

View file

@ -51,7 +51,7 @@ check_array (int a, int b)
return !!intarray.a;
}
static int
static int __attribute__((pure))
check_value (int index, int b)
{
if ((size_t) index >= intarray.size) {