Changeset: d807407ae1f0 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d807407ae1f0
Modified Files:
        gdk/gdk_logger.c
Branch: default
Log Message:

Get rid of unused variable in no-assert builds.


diffs (25 lines):

diff --git a/gdk/gdk_logger.c b/gdk/gdk_logger.c
--- a/gdk/gdk_logger.c
+++ b/gdk/gdk_logger.c
@@ -418,7 +418,7 @@ log_read_updates(logger *lg, trans *tr, 
                if (tt == TYPE_void && BATtdense(b))
                        tseq = 1;
        } else {                /* search trans action for create statement */
-               int i, found = 0;
+               int i;
 
                for (i = 0; i < tr->nr; i++) {
                        if (tr->changes[i].type == LOG_CREATE &&
@@ -433,11 +433,10 @@ log_read_updates(logger *lg, trans *tr, 
                                        tseq = 1;
                                        tt = TYPE_void;
                                }
-                               found = 1;
                                break;
                        }
                }
-               assert(found);
+               assert(i < tr->nr); /* found one */
        }
        assert((ht == TYPE_void && l->flag == LOG_INSERT) ||
               ((ht == TYPE_oid || !ht) && l->flag == LOG_UPDATE));
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to