Changeset: a6c379dd4d92 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/a6c379dd4d92
Modified Files:
monetdb5/modules/mal/pp_hash.c
Branch: pp_hashjoin
Log Message:
fix compilation issue on new gcc compiler, use proper TIMEOUT_LOOP macro when
the idx variable isn't used.
diffs (46 lines):
diff --git a/monetdb5/modules/mal/pp_hash.c b/monetdb5/modules/mal/pp_hash.c
--- a/monetdb5/modules/mal/pp_hash.c
+++ b/monetdb5/modules/mal/pp_hash.c
@@ -2922,7 +2922,7 @@ OAHASHexpand(Client ctx, bat *expanded,
if (s != oid_nil) {
gid frq = (gid)freq[s];
frq = frq?frq:1;
- TIMEOUT_LOOP_IDX_DECL(f, frq, qry_ctx) {
+ TIMEOUT_LOOP(frq, qry_ctx) {
res[idx++] = sel[i];
}
} else {
@@ -2933,7 +2933,7 @@ OAHASHexpand(Client ctx, bat *expanded,
TIMEOUT_LOOP_IDX_DECL(i, selcnt, qry_ctx) {
gid frq = (gid)freq[sid[i]];
frq = frq?frq:1;
- TIMEOUT_LOOP_IDX_DECL(j, frq, qry_ctx) {
+ TIMEOUT_LOOP(frq, qry_ctx) {
res[idx++] = sel[i];
}
}
@@ -3000,7 +3000,7 @@ OAHASHexpand_cart(Client ctx, bat *expan
oid *res = Tloc(e, 0);
BUN off = k->hseqbase;
TIMEOUT_LOOP_IDX_DECL(i, keycnt, qry_ctx) {
- TIMEOUT_LOOP_IDX_DECL(j, repcnt, qry_ctx) {
+ TIMEOUT_LOOP(repcnt, qry_ctx) {
res[idx++] = off+i;
}
}
@@ -3178,13 +3178,13 @@ OAHASHexplode_cart(Client ctx, bat *fetc
if (append_nulls) {
oid *res = Tloc(f, 0);
- TIMEOUT_LOOP_IDX_DECL(i, repcnt, qry_ctx) {
+ TIMEOUT_LOOP(repcnt, qry_ctx) {
res[idx++] = oid_nil;
}
} else {
oid *res = Tloc(f, 0);
BUN off = k->hseqbase;
- TIMEOUT_LOOP_IDX_DECL(i, repcnt, qry_ctx) {
+ TIMEOUT_LOOP(repcnt, qry_ctx) {
TIMEOUT_LOOP_IDX_DECL(j, keycnt, qry_ctx) {
res[idx++] = off+j;
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]