Skip to content

Fix #13559: Tokenizer: remove simplification that converts 'int x(0)' to 'int x; x = 0;'#7252

Merged
danmar merged 2 commits intocppcheck-opensource:mainfrom
olabetskyi:fix_13559
Jan 28, 2025
Merged

Fix #13559: Tokenizer: remove simplification that converts 'int x(0)' to 'int x; x = 0;'#7252
danmar merged 2 commits intocppcheck-opensource:mainfrom
olabetskyi:fix_13559

Conversation

@olabetskyi
Copy link
Copy Markdown
Collaborator

No description provided.

@danmar
Copy link
Copy Markdown
Collaborator

danmar commented Jan 27, 2025

Run the test-my-pr.py and show the results..

@olabetskyi
Copy link
Copy Markdown
Collaborator Author

After running 256 packets I got two issues:

main fflas-ffpack-2.5.0/benchmarks/benchmark-wino.C:51:0: style: Variable 'time' is assigned a value that is never used. [unreadVariable]
your fflas-ffpack-2.5.0/benchmarks/benchmark-wino.C:51:31: style: Variable 'time' is assigned a value that is never used. [unreadVariable]

main c++-annotations-13.01.02/yo/functiontemplates/examples/decltype.cc:19:0: style: Variable 's1' is assigned a value that is never used. [unreadVariable]
your c++-annotations-13.01.02/yo/functiontemplates/examples/decltype.cc:19:12: style: Variable 's1' is assigned a value that is never used. [unreadVariable]

Both differs only in column value which is now non zero thus clearer where the issue is.

@danmar danmar merged commit efef484 into cppcheck-opensource:main Jan 28, 2025
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