[PATCH 0/3] scan-build fixes
- From
Alex Henrie <alexhenrie24@gmail.com>
- Date
- Sep 25, 2019, 02:01 UTC
- Message-ID
- <20190925020158.751492-1-alexhenrie24@gmail.com>
These patches fix a few problems identified by scan-build [1]. None of them affect behavior, but they do make the code easier to follow and ensure that the compiler is able to optimize it to the fullest.
-Alex
[1] https://clang-analyzer.llvm.org/scan-build.html
Alex Henrie (3): commit-graph: remove a duplicate assignment diffcore-break: use a goto instead of a redundant if statement wrapper: use a loop instead of repetitive statements
commit-graph.c | 1 - diffcore-break.c | 15 +++++++-------- wrapper.c | 11 +++++------ 3 files changed, 12 insertions(+), 15 deletions(-)
-- 2.23.0