Changeset: de87464e8b65 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=de87464e8b65 Modified Files: monetdb5/extras/rapi/rapi.c Branch: default Log Message:
Fix compilation error: dev/monetdb5/extras/rapi/rapi.c:589:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] Enter commit message. Lines beginning with 'HG:' are removed. diffs (17 lines): diff --git a/monetdb5/extras/rapi/rapi.c b/monetdb5/extras/rapi/rapi.c --- a/monetdb5/extras/rapi/rapi.c +++ b/monetdb5/extras/rapi/rapi.c @@ -581,12 +581,12 @@ str RAPIeval(Client cntxt, MalBlkPtr mb, retval = R_tryEval(VECTOR_ELT(x, 0), env, &evalErr); if (evalErr != FALSE) { char* errormsg = strdup(R_curErrorBuf()); + size_t c; if (errormsg == NULL) { msg = createException(MAL, "rapi.eval", "Error running R expression."); goto wrapup; } // remove newlines from error message so it fits into a MAPI error (lol) - size_t c; for (c = 0; c < strlen(errormsg); c++) { if (errormsg[c] == '\r' || errormsg[c] == '\n') { errormsg[c] = ' '; _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list