[git] GPG-ERROR - branch, master, updated. libgpg-error-1.34-2-g8a93978

by NIIBE Yutaka cvs at cvs.gnupg.org
Wed Jan 23 08:15:58 CET 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Error codes used by GnuPG et al.".

The branch, master has been updated
       via  8a9397896fd202dcfb3fb46259e43bc05a0ddd2e (commit)
      from  2a8978d3504efba4068eb1723498b71286e04de2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8a9397896fd202dcfb3fb46259e43bc05a0ddd2e
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Wed Jan 23 16:12:12 2019 +0900

    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 <gniibe at fsij.org>

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;

-----------------------------------------------------------------------

Summary of changes:
 gpgscm/scheme.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
Error codes used by GnuPG et al.
http://git.gnupg.org




More information about the Gnupg-commits mailing list