Changeset: dc931fcb8ab7 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=dc931fcb8ab7 Modified Files: monetdb5/optimizer/opt_cquery.c Branch: trails Log Message:
Only void stk after all possible use. diffs (21 lines): diff --git a/monetdb5/optimizer/opt_cquery.c b/monetdb5/optimizer/opt_cquery.c --- a/monetdb5/optimizer/opt_cquery.c +++ b/monetdb5/optimizer/opt_cquery.c @@ -143,8 +143,6 @@ OPTcqueryImplementation(Client cntxt, Ma if( btop == MAXBSKTOPT || btop == 0) return MAL_SUCCEED; - (void) stk; - alias = (int *) GDKzalloc(mb->vtop * 2 * sizeof(int)); if (alias == 0) return MAL_SUCCEED; @@ -330,6 +328,8 @@ OPTcqueryImplementation(Client cntxt, Ma mnstr_printf(cntxt->fdout, "#cquery optimizer final\n"); printFunction(cntxt->fdout, mb, stk, LIST_MAL_DEBUG); #endif + (void) stk; // to silence compilers in case DEBUG_OPT_CQUERY is not defined + GDKfree(alias); GDKfree(old); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list