Skip to main content

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 09:00 Go to next message
Han Hoekstra is currently offline Han HoekstraFriend
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 10:44 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
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: Mon May 21 11:08:25 GMT 2018

Powered by FUDForum. Page generated in 0.01840 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top