Changeset: c197dd7be7ef for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/c197dd7be7ef
Modified Files:
        monetdb5/optimizer/opt_dataflow.c
Branch: Jul2021
Log Message:

It's not portable to have assert(0 && "something").
Some compilers warn (and hence error out) of useless expression.


diffs (16 lines):

diff --git a/monetdb5/optimizer/opt_dataflow.c 
b/monetdb5/optimizer/opt_dataflow.c
--- a/monetdb5/optimizer/opt_dataflow.c
+++ b/monetdb5/optimizer/opt_dataflow.c
@@ -301,10 +301,10 @@ checkBreakpoint(Client cntxt, MalBlkPtr 
                        return sqlBreakpoint(mb, first, p);
                default:
                        // serious corruption has occurred.
-                       assert(0 && "corrupted region_type");
+                       assert(0);                      /* corrupted 
region_type */
                        abort();
        }
-       assert(0 && "unreachable");
+       assert(0);                                      /* unreachable */
        return true;
 }
 
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to