details is just a struct and data_size is a uint16_t. This error wasn't here before upgrading.
Even when I rework this to something like this:
auto var = 10u / 7u;
the issue remains.
After uninstalling and trying out 2.15 the issue remains.
Exhaustive or not doesn't seem to resolve the issue.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A preprocessor definition got into the code. There was a CMake compile definition for /FR.
I removed it. Now the error is gone.
Thank you for the support!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I recently updated to Cppcheck 2.16 and added the exhaustive flag to my run.
Since then I get a few syntax errors.
_bam_data.init_data.nof_packets = details.data_size / 7;
details is just a struct and data_size is a uint16_t. This error wasn't here before upgrading.
Even when I rework this to something like this:
auto var = 10u / 7u;
the issue remains.
After uninstalling and trying out 2.15 the issue remains.
Exhaustive or not doesn't seem to resolve the issue.
Looking at the preprocessed output (pass
-E
option) might give a clue what's going on.1>_bam_data . init_data . nof_packets = details . data_size FR 1 7 ;
Does this help?
Certainly doesn't look like valid code. How does
/
becomeFR 1
?A preprocessor definition got into the code. There was a CMake compile definition for /FR.
I removed it. Now the error is gone.
Thank you for the support!