[Bug sanitizer/64906] -fsanitize=integer-divide-by-zero creates false -Wmaybe-uninitialized warning

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 22 13:21:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64906

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
int
testf (int f, int s)
{
  int ret = 0;
  if (f)
    ret = s / (f ? (unsigned long) 8 : 0);
  return ret;
}



More information about the Gcc-bugs mailing list