[cfe-commits] [patch] Add -Wdangling-else-parentheses

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Tue Dec 20 14:14:54 PST 2011


> Comments?

gcc incorrectly warn on

void f(int a, int b, int c, int d) {
  if (a)
    if (b) {
      c++;
    }
    else d++;
}

while your patch doesn't. I have tried building firefox with your patch
and it fired 0 times, so LGTM!

> Nico
> 

Thanks,
Rafael



More information about the cfe-commits mailing list