From d2f03e8a640d96f3e8dc6de1b0173b969ae887b2 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 20 Mar 2020 12:55:23 +0900 Subject: [PATCH] [util] Fix darray test for gcc purity --- libs/util/test/test-darray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/util/test/test-darray.c b/libs/util/test/test-darray.c index 59dbad0ab..59d3a2ddc 100644 --- a/libs/util/test/test-darray.c +++ b/libs/util/test/test-darray.c @@ -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) {