Changeset: cd2578ed447f for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/cd2578ed447f
Modified Files:
        sql/backends/monet5/sql_gencode.c
        sql/server/sql_partition.c
Branch: Jun2023
Log Message:

Work around compilation issues on MacOS with GCC 12 in optimized mode.


diffs (33 lines):

diff --git a/sql/backends/monet5/sql_gencode.c 
b/sql/backends/monet5/sql_gencode.c
--- a/sql/backends/monet5/sql_gencode.c
+++ b/sql/backends/monet5/sql_gencode.c
@@ -288,7 +288,8 @@ static int
        backend_reset(be);
 
        int nargs;
-       relational_func_create_result_part1(m, &r, &nargs);
+       sql_rel *nr = r;
+       relational_func_create_result_part1(m, &nr, &nargs);
        nargs += (call && call->type == st_list) ? list_length(call->op4.lval) 
: rel_ops ? list_length(rel_ops) : 0;
 
        c->curprg = newFunctionArgs(putName(mod), putName(name), 
FUNCTIONsymbol, nargs);
@@ -299,7 +300,7 @@ static int
                sql_error(m, 10, "%s", m->sa->eb.msg);
                freeSymbol(c->curprg);
                goto bailout;
-       } else if (_create_relational_function_body(m, r, call, rel_ops, 
inline_func) < 0) {
+       } else if (_create_relational_function_body(m, nr, call, rel_ops, 
inline_func) < 0) {
                goto bailout;
        }
        *be = bebackup;
diff --git a/sql/server/sql_partition.c b/sql/server/sql_partition.c
--- a/sql/server/sql_partition.c
+++ b/sql/server/sql_partition.c
@@ -320,6 +320,7 @@ find_partition_type(sql_subtype *tpe, sq
                *tpe = mt->part.pexp->type;
        } else {
                assert(0);
+               *tpe = (sql_subtype){0};
        }
 }
 
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to