Codan Bug icon on OSDumpTCBStacks() and OSDumpTasks() calls?

Discussion to talk about software related topics only.
Post Reply
Ridgeglider
Posts: 513
Joined: Sat Apr 26, 2008 7:14 am

Codan Bug icon on OSDumpTCBStacks() and OSDumpTasks() calls?

Post by Ridgeglider »

I have a project running under Rel_2_6_0_020 that persists in showing the codan bug icons for the following calls:
UCOS_STACKCHECK is 1.png
UCOS_STACKCHECK is 1.png (6.83 KiB) Viewed 2385 times
The file making these calls #include (variously):
#include "ucos.h"
#include "ucosmcfc.h" or alternatively just:
#include <startnet.h>

As you can see from the hover field, I've edited predef.h and rebuilt the system so UCOS_STACKCHECK is defined. The project builds and runs successfully except for these annoying codan errors.

The project build paths are below. What's odd is that for some reason, some other projects in the same workspace with the same #includes don't show codan bug errors for the OSDumpTasks() and OSDumpTCBstacks() calls. Any ideas to prevent them??
Attachments
Default includes.png
Default includes.png (22.86 KiB) Viewed 2385 times
User avatar
tod
Posts: 587
Joined: Sat Apr 26, 2008 8:27 am
Location: Southern California
Contact:

Re: Codan Bug icon on OSDumpTCBStacks() and OSDumpTasks() ca

Post by tod »

Is it possible that for this project under the properties C/C++ General->Indexer settings you have the Enable project specific settings check box checked? Also it would help to see the line from that same indexer settings for the Files to index up-front: text box.

Edit: Oh yeah you also probably want to right-click the project and do an Index->Rebuild if you haven't already.
Ridgeglider
Posts: 513
Joined: Sat Apr 26, 2008 7:14 am

Re: Codan Bug icon on OSDumpTCBStacks() and OSDumpTasks() ca

Post by Ridgeglider »

Tod:
First off, thanks so much for ongoing feedback. It is really helpful and appreciated!

1) I believe a related problem may be that for some reason codan is also once-again placing the bug icon on anything that has an argument of size_t (usually sniprintf() or snprintf() calls). I thought I'd fixed this last week by following your StackOverflow post as highlighted in yellow below in the Files to index up-front: box.

2) As you can see, the Properties >> C/C++ General >> Indexer tab "Enable project specific settings" is NOT checked.


3) Yes, I did rebuild the index as suggested.

4) If I uncheck the circled items in the Codan settings, these errors don't show up,k but I'm learning that the codan output is really useful if i can just get it configured properly...
Cheers!
IndexerSettings.png
IndexerSettings.png (76.76 KiB) Viewed 2378 times
Attachments
CodanSettings.png
CodanSettings.png (130.96 KiB) Viewed 2378 times
Post Reply