[gecode-users] Why are my variables not constrained
Denys Duchier
denys.duchier at univ-orleans.fr
Mon Oct 6 14:45:31 CEST 2008
Guido Tack <tack at ps.uni-sb.de> writes:
> Otherwise, the post statement returns a BoolVar that is constrained to
> the truth value of the equivalence. Unfortunately, gcc doesn't warn
> about the ignored return value (I don't know about Microsoft cl)!
you can ask gcc to warn on ignored return values by adding:
__attribute__ ((warn_unused_result))
to the function's prototype.
Cheers,
--Denys
More information about the gecode-users
mailing list