arocc icon indicating copy to clipboard operation
arocc copied to clipboard

`-Wreturn-type` warning should be suppressed if implicit return is not reachable

Open ehaas opened this issue 3 years ago • 0 comments

arocc currently issues a warning for this; clang and gcc do not:

int foo(int x) {
  while (1) {
    return x;
  }
}

ehaas avatar Jul 01 '22 06:07 ehaas