------- Comment #19 from bagnara at cs dot unipr dot it  2006-01-25 11:39 
-------
Just a small update.  On one of our projects we have now thousands of warnings
on the test "x < 0" for the function below, when Type is instantiated to an
unsigned integral type:

template <typename Type>
inline Result
sgn_generic(const Type& x) {
  if (x < 0)
    return V_LT;
  if (x > 0)
    return V_GT;
  return V_EQ;
}

The net result is that some of us started using "-w" or stopped paying
attention to warnings, and, as a consequence bugs are creeping in at a much
increased rate.  Please, give us a way to at least turn off that warning.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12963

Reply via email to