Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Indexer doesn't understand GCC flags
Indexer doesn't understand GCC flags [message #818872] Mon, 12 March 2012 08:15 Go to next message
W Li is currently offline W LiFriend
Messages: 11
Registered: February 2011
Junior Member
Indexer is skipping functions where parameters are tagged with gcc flag UNUSED. This only happens after a recent CDT update.
Re: Indexer doesn't understand GCC flags [message #819856 is a reply to message #818872] Tue, 13 March 2012 12:14 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
I did not notice this behavior. Can you provide a simple example?

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Indexer doesn't understand GCC flags [message #853357 is a reply to message #819856] Mon, 23 April 2012 00:44 Go to previous messageGo to next message
W Li is currently offline W LiFriend
Messages: 11
Registered: February 2011
Junior Member
here is an example:
int foo(int para1 UNUSED, int para2)
{
//blah blah
}

Then eclipse will not be able to parse this function.
Re: Indexer doesn't understand GCC flags [message #853675 is a reply to message #853357] Mon, 23 April 2012 08:21 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
gcc uses a different syntax for unused arguments.
http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/Variable-Attributes.html
and
http://stackoverflow.com/questions/1486904/how-do-i-best-silence-a-warning-about-unused-variables

Your define UNUSED seems not to be defined anywhere.


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:Color preference problem
Next Topic:Finding source files
Goto Forum:
  


Current Time: Thu Mar 28 18:27:33 GMT 2024

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

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

Back to the top