The checking process will be stopped by this error, and cppcheck exit. Is this normal?
As you know, there also might be -I options in the commands of a compile_commands.json. So checking will not be completed if such a compile_commands.json is imported.
Is there any method to avoid such errors? Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Already tracked in https://trac.cppcheck.net/ticket/14091 but the behavior changed. We need to treat this differently. I will file tickets about that soon.
A workaround for this is define it yourself -D__GLIBC_USE(x)=(0) for now.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
For example, I have below code in main.c:
With "cppcheck main.c -I /usr/include", there will be error:
The checking process will be stopped by this error, and cppcheck exit. Is this normal?
As you know, there also might be -I options in the commands of a compile_commands.json. So checking will not be completed if such a compile_commands.json is imported.
Is there any method to avoid such errors? Thanks!
Already tracked in https://trac.cppcheck.net/ticket/14091 but the behavior changed. We need to treat this differently. I will file tickets about that soon.
A workaround for this is define it yourself
-D__GLIBC_USE(x)=(0)for now.