[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#341345: gcc-4.0: Please warn on impossible && conditionals



Package: gcc-4.0
Version: 4.0.2-4
Severity: wishlist
Tags: upstream

gcc will warn on something like

  char c;
  // ...
  if (c>256) {
  // warning: comparison is always false due to limited range of data type
  // ...
  }

Please consider also warning on things like:

  if (0==c && 1==c)



Reply to: