Changeset: be5b4983041d for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=be5b4983041d
Modified Files:
        monetdb5/extras/rdf/rdfschema.c
Branch: rdf
Log Message:

fixed compilation with assertions disabled;

Open question: is an assertion the correct sanity check, here,
or should it rather be a runtime check with proper exception handling
that also work in a "production" build, i.e., when assertions are
disabled ... ?


diffs (16 lines):

diff --git a/monetdb5/extras/rdf/rdfschema.c b/monetdb5/extras/rdf/rdfschema.c
--- a/monetdb5/extras/rdf/rdfschema.c
+++ b/monetdb5/extras/rdf/rdfschema.c
@@ -851,7 +851,11 @@ void mergeOidSets(oid* arr1, oid* arr2, 
                }               
        } 
        
-       assert(pos == numCombineP); 
+       assert(pos == numCombineP);
+#ifdef NDEBUG
+       /* "fake" use in case assertion are disabled */
+       (void) numCombineP;
+#endif
        /*
        printf("pos = %d, numCombineP = %d\n", pos, numCombineP);
 
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to