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

fixed compilation with assertion disabled and optimization enabled:

let's assume parameter 'origCSoid' is indeed only supposed to be used
in the assertion in functions 'addReltoCSRel' & 'addReltoCSRelWithFreq'

.../monetdb5/extras/rdf/rdfschema.c: In function 'addReltoCSRel':
.../monetdb5/extras/rdf/rdfschema.c:142:24: error: unused parameter 'origCSoid' 
[-Werror=unused-parameter]
.../monetdb5/extras/rdf/rdfschema.c: In function 'addReltoCSRelWithFreq':
.../monetdb5/extras/rdf/rdfschema.c:195:32: error: unused parameter 'origCSoid' 
[-Werror=unused-parameter]


diffs (25 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
@@ -148,6 +148,10 @@ void addReltoCSRel(oid origCSoid, oid re
        int i = 0; 
 
        assert (origCSoid == csrel->origCSoid);
+#ifdef NDEBUG
+       /* parameter origCSoid is not used other in about assertion */
+       (void) origCSoid;
+#endif
 
        while (i < csrel->numRef){
                if (refCSoid == csrel->lstRefCSoid[i] && propId == 
csrel->lstPropId[i]){
@@ -197,6 +201,10 @@ void addReltoCSRelWithFreq(oid origCSoid
        int i = 0; 
 
        assert (origCSoid == csrel->origCSoid);
+#ifdef NDEBUG
+       /* parameter origCSoid is not used other in about assertion */
+       (void) origCSoid;
+#endif
 
        while (i < csrel->numRef){
                if (refCSoid == csrel->lstRefCSoid[i] && propId == 
csrel->lstPropId[i]){
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to