User Activity

  • Posted a comment on discussion Development on cppcheck

    OMG ! You're totally right ! 🤩 I downloaded the last succesful nightly build and there is the result : C:\[...]>"C:\[...]\portable\cppcheck.exe" --enable=all --checkers-report=retour.txt .\test.c Checking test.c ... test.c:2:2: information: Include file: <bool.h> not found. Please note: Standard library headers do not need to be provided to get proper results. [missingIncludeSystem] #include <bool.h> ^ **test.c:17:6: style: Condition 'fn1' is always true [knownConditionTrueFalse] if(fn1)** ^ test.c:4:6:...

  • Modified a comment on discussion Development on cppcheck

    Hello, Thanks a lot for your answer. 👍 I was using the GUI, but using CLI, I've got that : C:\[...]>"C:\Program Files\Cppcheck\cppcheck.exe" --enable=all --checkers-report=retour.txt .\test.c Checking test.c ... test.c:2:2: information: Include file: <bool.h> not found. Please note: Standard library headers do not need to be provided to get proper results. [missingIncludeSystem] #include <bool.h> ^ test.c:4:6: style: The function 'fn1' should have static linkage since it is not used outside of its...

  • Posted a comment on discussion Development on cppcheck

    Hello, Thanks a lot for your answer. 👍 I was using the GUI, but using CLI, I've got that : C:\Users\pgarnier\Documents\travaux\20261125_ticket_cppcheck>"C:\Program Files\Cppcheck\cppcheck.exe" --enable=all --checkers-report=retour.txt .\test.c Checking test.c ... test.c:2:2: information: Include file: <bool.h> not found. Please note: Standard library headers do not need to be provided to get proper results. [missingIncludeSystem]</bool.h> include <bool.h></bool.h> ^ test.c:4:6: style: The function...

  • Posted a comment on discussion Development on cppcheck

    Hello, In the first place, congratulations for this project ! Code analysis tools are really useful for faulty developpers as me. Thanks ! ;) Despite the suspect conditional test "if(fn1)", the following piece of code doesn't trigger any result with cppcheck v. 2.22.0 : #include <bool.h> bool fn1(void) { static bool internalState = false; internalState = !internalState; return(internalState); } int main() { while(1) { if(fn1) { printf("1"); } } } As fn1 is a "constant" function pointer (definition...

View All

Personal Data

Username:
carm66
Joined:
2026-11-05 11:20:04.776000

Projects

  • No projects to display.

Personal Tools