Changeset: e9d9b58d5f1e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e9d9b58d5f1e
Modified Files:
        sql/src/backends/monet5/sql_optimizer.mx
Branch: default
Log Message:

fixed compilation with assertions disabled:

variable "msg" is only used in an "assert()" call;
hence we better ensure that is is also declared
only if assertions are enabled;
this prevents
"
sql/src/backends/monet5/sql_optimizer.mx(337): error #177: variable "msg" was 
declared but never referenced
  str msg = getContext(cntxt,mb, &m, NULL);
      ^
"


diffs (13 lines):

diff -r d0e93651b4a3 -r e9d9b58d5f1e sql/src/backends/monet5/sql_optimizer.mx
--- a/sql/src/backends/monet5/sql_optimizer.mx  Thu Aug 05 16:24:36 2010 +0200
+++ b/sql/src/backends/monet5/sql_optimizer.mx  Thu Aug 05 16:56:34 2010 +0200
@@ -334,7 +334,9 @@
                        sql_bpm *bpm = NULL;
                        sql_schema *s = mvc_bind_schema(m, sname);
                        mvc *m = NULL;
+#ifndef NDEBUG
                        str msg = getContext(cntxt,mb, &m, NULL);
+#endif
                        BAT *b;
 
                        assert(msg == MAL_SUCCEED);
_______________________________________________
Checkin-list mailing list
Checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to