User Activity

  • Posted a comment on discussion Development on cppcheck

    If anybody is interested. The workaround is to add -Dpthread_mutex_t=int to get around this issue. I cannot find a better way to get around this. It seems to me any sizeof(typedef_of_a_struct_t) always fails in macro expansions. i.e. #MY_MACRO sizeof(typedef_of_a_struct_t) will always result in error: Variable 'typedef_of_a_struct_t' is unknown [misra-config] The cppcheck with misra addon seems to make these errors more and more troublesome in which they needs to be bypassed. In my view, this is...

  • Posted a comment on discussion Development on cppcheck

    Sorry CHR. I realised was say too brief in the description. Here is a more detailed output: cppcheck version: 2.13.0 $ cppcheck --addon=test/pipeline/coding_stds/misra.json --error-exitcode=255 -I/home/user/devel/repos/project/common/src/utils /home/user/devel/common/src/comp/comp_queue.c And the result: . . . Checking project/common/src/comp/comp_queue.c: SYSCFG_COMP_USE... project/common/src/comp/comp_queue.c:284:10: error: Variable 'pthread_mutex_t' is unknown [misra-config] if ((Q_HDR_SZ+(Q_ELEM_HDR_SZ+pkt_sz)*inbuf_cap)...

  • Posted a comment on discussion Development on cppcheck

    Hi. I don't seem to be able to get out of this problem. In my file queue.h I have declared: #include <pthread.h> #define Q_HDR_INT_SZ 4 #define Q_HDR_SZ (sizeof(pthread_mutex_t) + Q_HDR_INT_SZ) When using the macro, I get: Variable 'pthread_mutex_t' is unknown Anyone can guide me to why this error is being generated and to fix it?

  • Posted a comment on discussion General Discussion on cppcheck

    I am running cppcheck version 2.13.0 on Ubuntu 24.04 (x84_64) for a C project. It seems including directories for header files containing declarations from an open sourced library that is used by our software doesn't seem to work. I have triple checked path existence and its relative path and can confirm they are correct yet still it doesn't find the Variables as errors are thrown. For example, in file project/common/lib/pus/fp-1.0/include/pus_error.h, the variable PUS_NO_ERROR is defined as shown...

  • Posted a comment on ticket #36 on DEPRECATED > GNU ARM Eclipse

    Thanks for the super fast answer :) The upgrade of eclipse did it! Thanks again!...

  • Created ticket #36 on DEPRECATED > GNU ARM Eclipse

    Installation problem on Eclipse 3.8

View All

Personal Data

Username:
freeindy
Joined:
2007-03-10 13:04:19

Projects

This is a list of open source software projects that Inderjit Singh is associated with:

  • Lips   Last Updated:

Personal Tools