Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » CODAN warning: Unused declaration of variable 'pxCurrentTCB'
CODAN warning: Unused declaration of variable 'pxCurrentTCB' [message #964104] Tue, 30 October 2012 05:00 Go to next message
Han Hoekstra is currently offline Han Hoekstra
Messages: 5
Registered: July 2009
Location: The Netherlands
Junior Member

I think I have discovered a problem in the Code Analysis software.
I get the warning: Unused declaration of variable 'pxCurrentTCB'
The code line is: extern tskTCB *pxCurrentTCB;

The variable pxCurrentTCB is not used in C-code, but is used in a macro called 'portSAVE_CONTEXT', which is a define that declares an asm block.
This is all part of FreeRTOS.

So it seems that CODAN can not see the variable being used, because it is in an asm block.

Should I report this problem in some bug database ? If so, where ?

Re: CODAN warning: Unused declaration of variable 'pxCurrentTCB' [message #964209 is a reply to message #964104] Tue, 30 October 2012 06:44 Go to previous message
Axel Mueller is currently offline Axel Mueller
Messages: 1949
Registered: July 2009
Senior Member
Sounds like a bug.

Before you ask
- search this forum
- see the FAQ
- google
Previous Topic:CODAN problems "semantic error"
Next Topic:Building C++ project with make file
Goto Forum:

Current Time: Thu Aug 21 20:00:51 EDT 2014

Powered by FUDForum. Page generated in 0.01619 seconds