diff options
author | NIIBE Yutaka <[email protected]> | 2019-01-23 07:12:12 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2019-01-23 07:12:12 +0000 |
commit | 8a9397896fd202dcfb3fb46259e43bc05a0ddd2e (patch) | |
tree | 40397c4a1fc66f5ac7ca7f728ac35309246274f9 | |
parent | Post release updates (diff) | |
download | libgpg-error-8a9397896fd202dcfb3fb46259e43bc05a0ddd2e.tar.gz libgpg-error-8a9397896fd202dcfb3fb46259e43bc05a0ddd2e.zip |
gpgscm: Build well even if NDEBUG defined.
* gpgscm/scheme.c (gc_reservation_failure): Fix adding ";".
[!NDEBUG] (scheme_init_custom_alloc): Don't init seserved_lineno.
--
In some build environment, NDEBUG is defined (although it's
bad practice). This change supports such a situation.
GnuPG-bug-id: 3959
Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r-- | gpgscm/scheme.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gpgscm/scheme.c b/gpgscm/scheme.c index 1b489e4..eb57ba4 100644 --- a/gpgscm/scheme.c +++ b/gpgscm/scheme.c @@ -873,7 +873,7 @@ gc_reservation_failure(struct scheme *sc) { #ifdef NDEBUG fprintf(stderr, - "insufficient reservation\n") + "insufficient reservation\n"); #else fprintf(stderr, "insufficient %s reservation in line %d\n", @@ -5615,7 +5615,9 @@ int scheme_init_custom_alloc(scheme *sc, func_alloc malloc, func_dealloc free) { sc->fcells = 0; sc->inhibit_gc = GC_ENABLED; sc->reserved_cells = 0; +#ifndef NDEBUG sc->reserved_lineno = 0; +#endif sc->no_memory=0; sc->inport=sc->NIL; sc->outport=sc->NIL; |