generate constraints differently to avoid warnings
diff --git a/tests/tests-asn1c-compiler/50-constraint-OK.asn1.-Pgen-PER b/tests/tests-asn1c-compiler/50-constraint-OK.asn1.-Pgen-PER
index e60729e..25035fd 100644
--- a/tests/tests-asn1c-compiler/50-constraint-OK.asn1.-Pgen-PER
+++ b/tests/tests-asn1c-compiler/50-constraint-OK.asn1.-Pgen-PER
@@ -86,15 +86,12 @@
value = *(const long *)sptr;
- if((value >= 0)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- ASN__CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
+ if(1 /* No applicable constraints whatsoever */) {
+ (void)value; /* Unused variable */
+ /* Nothing is here. See below */
}
+
+ return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
}
/*