-
Notifications
You must be signed in to change notification settings - Fork 408
Incompatibility between CodeChecker 6.24.4 and cppcheck 2.17.1 #4498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you name an older version of cppcheck which is working well? |
Experiencing the same problem here( |
I don't have an answer for this yet, I've run into unrelated issues trying to get cppcheck 2.16.0 working with CodeChecker. Will report back when I have an answer. |
It seems that Cppcheck 2.16.2 works fine with CodeChecker |
I changed the following to make it work. I am not aware of the consequences. --- a/analyzer/codechecker_analyzer/analyzers/cppcheck/analyzer.py
+++ b/analyzer/codechecker_analyzer/analyzers/cppcheck/analyzer.py
@@ -218,7 +218,7 @@ class Cppcheck(analyzer_base.SourceAnalyzer):
# unusedFunction check is for whole program analysis,
# which is not compatible with per source file analysis.
- analyzer_cmd.append('--suppress=unusedFunction')
+ # analyzer_cmd.append('--suppress=unusedFunction')
# Add extra arguments.
analyzer_cmd.extend(config.analyzer_extra_arguments)
--
2.47.2 |
Describe the bug
cppcheck 2.17.1 fails with error message:
cppcheck: error: suppression 'unusedFunction' already exists
CodeChecker version
Installed via
pip
Base package version | 6.24.4
Package build date | 2024-10-28T15:46
Git commit ID (hash) | 454d978
Git tag information | 6.24.4-tainted
cppcheck version
Installed via
homebrew
Cppcheck 2.17.1
To Reproduce
Steps to reproduce the behaviour:
setup.sh
(sets up Python virtual environment, some configuration files)run-codechecker
(shell script)See attached files requirements.txt, report.txt. (Unable to upload shell scripts, CodeChecker configuration files)
requirements.txt
report.txt
Expected behaviour
Expected cppcheck to run normally.
Desktop (please complete the following information)
homebrew
Additional context
Unable to upload configuration files or shell scripts.
unusedFunction
occurs nowhere in them.The text was updated successfully, but these errors were encountered: