Changeset: c2ccd93fc46c for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c2ccd93fc46c
Modified Files:
gdk/gdk_bat.c
Branch: Jul2015
Log Message:
In case of static code analysis, we don't need hsize and tsize.
diffs (26 lines):
diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c
--- a/gdk/gdk_bat.c
+++ b/gdk/gdk_bat.c
@@ -1172,7 +1172,9 @@ BUNins(BAT *b, const void *h, const void
if (BUNinplace(bm, p, t, h, force) != GDK_SUCCEED)
return GDK_FAIL;
} else {
+#ifndef STATIC_CODE_ANALYSIS
size_t hsize = 0, tsize = 0;
+#endif
p = BUNlast(b); /* insert at end */
if (p == BUN_MAX || b->batCount == BUN_MAX) {
@@ -1187,10 +1189,12 @@ BUNins(BAT *b, const void *h, const void
ALIGNins(b, "BUNins", force, GDK_FAIL);
b->batDirty = 1;
+#ifndef STATIC_CODE_ANALYSIS
if (b->H->hash && b->H->vheap)
hsize = b->H->vheap->size;
if (b->T->hash && b->T->vheap)
tsize = b->T->vheap->size;
+#endif
setcolprops(b, b->H, h);
setcolprops(b, b->T, t);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list