Skip to content

Refactor a few control structures to be more gcov friendly#24

Merged
msteinert merged 2 commits into
mainfrom
simplify-control-structures2
Aug 19, 2025
Merged

Refactor a few control structures to be more gcov friendly#24
msteinert merged 2 commits into
mainfrom
simplify-control-structures2

Conversation

@rdmark

@rdmark rdmark commented Aug 13, 2025

Copy link
Copy Markdown
Collaborator

Use alternative control structures for two complex loops that make them parsable for the code coverage tool gcov.

Also refactored a few side-effecty conditional statements.

Resolves these warnings:

lcov: WARNING: (inconsistent) /home/dmark/bstring/bstring/bstraux.c:597: unexecuted block on non-branch line with non-zero hit count
lcov: WARNING: (inconsistent) /home/dmark/bstring/bstring/bstrlib.c:1859: unexecuted block on non-branch line with non-zero hit count

@rdmark
rdmark force-pushed the simplify-control-structures2 branch from fd13a72 to 3179ea3 Compare August 13, 2025 18:23
@sonarqubecloud

Copy link
Copy Markdown

@rdmark
rdmark requested a review from msteinert August 13, 2025 18:28
@msteinert
msteinert merged commit c31c745 into main Aug 19, 2025
13 checks passed
@rdmark
rdmark deleted the simplify-control-structures2 branch August 19, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants