When --cppheck-build-dir "cache" is created without the --check-level=exhaustive first, using --check-level=exhaustive seems to have no effect and CheckLevelMaxBranches warning is still printed.
Removing the "cache" dir helps.
I have not tested any other order of operations, e.g. creating cache with exhaustive level first and then not using the exhaustive level option but reusing the cache directory.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When --cppheck-build-dir "cache" is created without the --check-level=exhaustive first, using --check-level=exhaustive seems to have no effect and CheckLevelMaxBranches warning is still printed.
Removing the "cache" dir helps.
I have not tested any other order of operations, e.g. creating cache with exhaustive level first and then not using the exhaustive level option but reusing the cache directory.
Thanks for your report.
I filed https://trac.cppcheck.net/ticket/13376 about it.