From 8f0ecb16cbb3798ad18be5f05b826db2aa1aaa00 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 31 Jan 2017 12:43:00 +0100 Subject: gpgscm: Fix build with object list. * tests/gpgscm/scheme.c (oblist_add_by_name): Provide preallocation information if USE_OBJECT_LIST. Signed-off-by: Justus Winter --- tests/gpgscm/scheme.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c index 27beb3a54..1801ffc90 100644 --- a/tests/gpgscm/scheme.c +++ b/tests/gpgscm/scheme.c @@ -1151,6 +1151,7 @@ static INLINE pointer oblist_find_by_name(scheme *sc, const char *name) /* returns the new symbol */ static pointer oblist_add_by_name(scheme *sc, const char *name) { +#define oblist_add_by_name_allocates 3 pointer x; x = immutable_cons(sc, mk_string(sc, name), sc->NIL); -- cgit v1.2.3