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
Hello,

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 ?

Greetings,
Han
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.
https://bugs.eclipse.org/bugs/query.cgi


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:CODAN problems "semantic error"
Next Topic:Building C++ project with make file
Goto Forum:
  


Current Time: Thu Apr 25 12:57:34 GMT 2024

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

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

Back to the top