Commit Graph

1 Commits

Author SHA1 Message Date
Julien Fischer
e70a5406ad Warn about unsigned comparisons against zero that are tautologies etc.
If --warn-simple-code is enabled, then emit a warning for comparisons of
unsigned integer values against zero if that comparison is a tautology or
contradiction.

compiler/simplify_goal_call.m:
   Implement the new warning.

tests/warnings/Mmakefile:
tests/warnings/unsigned_zero_cmp.{m,exp}:
   Add a test of the new warning.
2018-10-21 03:22:18 +00:00