aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-01-31 11:43:00 +0000
committerJustus Winter <[email protected]>2017-01-31 17:49:27 +0000
commit8f0ecb16cbb3798ad18be5f05b826db2aa1aaa00 (patch)
tree0c3eff2392a2994df58e9e28f0be420bdacab114
parentgpgscm: Remove unused functions. (diff)
downloadgnupg-8f0ecb16cbb3798ad18be5f05b826db2aa1aaa00.tar.gz
gnupg-8f0ecb16cbb3798ad18be5f05b826db2aa1aaa00.zip
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 <[email protected]>
-rw-r--r--tests/gpgscm/scheme.c1
1 files changed, 1 insertions, 0 deletions
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);