Changeset: b4440345578b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b4440345578b
Modified Files:
        pathfinder/compiler/algebra-m5sql/msa.c
Branch: default
Log Message:

fixed compilation with assertions disabled:
pathfinder/compiler/algebra-m5sql/msa.c:190: error: "expr_cols_in_schema" 
defined but not used

Function expr_cols_in_schema() is only used when assertions are enabled,
i.e., when NDEBUG is not defined;
hence, we better also define the function itself only in case
assertions are enabled, i.e., NDEBUG is not defined.


diffs (19 lines):

diff -r 42942d9811d8 -r b4440345578b pathfinder/compiler/algebra-m5sql/msa.c
--- a/pathfinder/compiler/algebra-m5sql/msa.c   Tue May 25 15:56:20 2010 +0200
+++ b/pathfinder/compiler/algebra-m5sql/msa.c   Tue May 25 16:03:09 2010 +0200
@@ -183,6 +183,7 @@
 
 /* -------------------- Auxiliary functions --------------------*/
 
+#ifndef NDEBUG
 /* Auxiliary function to determine if all
  columns that are referenced in expr are columns of schema
  */
@@ -216,6 +217,7 @@
         return true;
     }
 }
+#endif
 
 /* Auxiliary function to get schema from a list of expressions */
 PFalg_schema_t
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to