Changeset: e31d74feb53f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e31d74feb53f
Modified Files:
monetdb5/extras/jaql/jaqlgencode.c
Branch: Jul2012
Log Message:
Help compiler: "control reaches end of non void function".
The compiler doesn't know it can't get there.
diffs (26 lines):
diff --git a/monetdb5/extras/jaql/jaqlgencode.c
b/monetdb5/extras/jaql/jaqlgencode.c
--- a/monetdb5/extras/jaql/jaqlgencode.c
+++ b/monetdb5/extras/jaql/jaqlgencode.c
@@ -491,7 +491,7 @@ static int
dumpin(jc *j, Client cntxt, MalBlkPtr mb, tree *t, int elems)
{
int ink = 0, inn = 0, ind = 0, ins = 0;
- int a, b, c, g;
+ int a, b, c, g = 0;
InstrPtr q;
assert(
@@ -772,10 +772,12 @@ dumpin(jc *j, Client cntxt, MalBlkPtr mb
g = getArg(q, 0);
pushInstruction(mb, q);
- return g;
+ break;
default:
assert(0);
}
+
+ return g;
}
/* returns bat with in the head the oids from elems that match the
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list