Changeset: a39bcf7f96ad for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a39bcf7f96ad
Modified Files:
monetdb5/extras/rdf/rdfschema.c
Branch: rdf
Log Message:
fixed compilation with assertion disabled and optimization enabled:
Shouldn't we rather use proper error handling than a simple assertion?
The latter has no effect in a "production" build ...
.../monetdb5/extras/rdf/rdfschema.c: In function 'putPtoHash':
.../monetdb5/extras/rdf/rdfschema.c:1260:7: error: variable 'err' set but not
used [-Werror=unused-but-set-variable]
diffs (14 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
@@ -1270,6 +1270,10 @@ static void putPtoHash(map_t pmap, int k
err = hashmap_put_forP(pmap, pkey, 1, putPoid, support);
assert(err == MAP_OK);
+#ifdef NDEBUG
+ /* variable err is not used other than in above assertion */
+ (void) err;
+#endif
(*poid)++;
}
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list