Update of /cvsroot/monetdb/pathfinder/compiler/algebra/opt
In directory sc8-pr-cvs16:/tmp/cvs-serv25567/algebra/opt
Modified Files:
opt_thetajoin.c
Log Message:
-- picky compilers...
Index: opt_thetajoin.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/opt/opt_thetajoin.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- opt_thetajoin.c 7 May 2007 10:17:15 -0000 1.1
+++ opt_thetajoin.c 10 May 2007 13:42:31 -0000 1.2
@@ -1041,10 +1041,12 @@
modified = modify_binary_op (p, PFla_gt, true, alg_comp_gt);
break;
case la_bool_and:
- modified = modify_binary_op (p, PFla_and, false, 0);
+ modified = modify_binary_op (p, PFla_and, false,
+ alg_comp_eq /* pacify picky compiler */);
break;
case la_bool_or:
- modified = modify_binary_op (p, PFla_or, false, 0);
+ modified = modify_binary_op (p, PFla_or, false,
+ alg_comp_eq /* pacify picky compiler */);
break;
case la_bool_not:
@@ -1090,7 +1092,11 @@
att = p->sem.unary.att;
PFarray_t *pred;
unsigned int i;
- PFalg_comp_t comp = 0;
+ PFalg_comp_t comp;
+
+ /* pacify picky compilers: one does not like no value (gcc)
+ and the other one does not like a dummy value (icc) */
+ comp = alg_comp_eq;
/* make sure that column res is not used as join argument
*/
resolve_name_conflicts (L(p), res);
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins