Changeset: b8907da55ec9 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b8907da55ec9
Modified Files:
monetdb5/optimizer/opt_garbageCollector.c
Branch: default
Log Message:
Reduce error message on release builds
diffs (19 lines):
diff --git a/monetdb5/optimizer/opt_garbageCollector.c
b/monetdb5/optimizer/opt_garbageCollector.c
--- a/monetdb5/optimizer/opt_garbageCollector.c
+++ b/monetdb5/optimizer/opt_garbageCollector.c
@@ -102,10 +102,14 @@ OPTgarbageCollectorImplementation(Client
if( used[i]){
p = getInstrPtr(mb, used[i]);
if( p){
+#ifdef NDEBUG
+ snprintf(buf,1024,"Unused variable %s", getVarName(mb,
i));
+#else
str msg = instruction2str(mb, NULL, p, LIST_MAL_ALL);
snprintf(buf,1024,"Unused variable %s: %s",
getVarName(mb, i), msg);
+ GDKfree(msg);
+#endif
newComment(mb,buf);
- GDKfree(msg);
}
}
GDKfree(used);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list