clang-tidy: check readability-redundant-control-flow

Also fix fallouts.

Ref: https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-control-flow.html

Closes #20625
This commit is contained in:
Viktor Szakats 2026-02-18 14:37:33 +01:00
parent c878160e9c
commit bd60df527c
No known key found for this signature in database
3 changed files with 2 additions and 3 deletions

View File

@ -15,4 +15,5 @@ Checks: >-
bugprone-suspicious-realloc-usage,
misc-const-correctness,
portability-*,
readability-named-parameter
readability-named-parameter,
readability-redundant-control-flow

View File

@ -211,7 +211,6 @@ static void showUsage(void)
" port.\n");
fprintf(stderr, " --help Print this help.\n");
fprintf(stderr, "\n");
return;
}
int main(int argc, const char *argv[])

View File

@ -878,7 +878,6 @@ abort:
curlx_close(test->ofile);
test->ofile = 0;
}
return;
}
/*