Skip to main content



      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 04:15 Go to next message
Eclipse UserFriend
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 08:14 Go to previous messageGo to next message
Eclipse UserFriend
I did not notice this behavior. Can you provide a simple example?
Re: Indexer doesn't understand GCC flags [message #853357 is a reply to message #819856] Sun, 22 April 2012 20:44 Go to previous messageGo to next message
Eclipse UserFriend
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 04:21 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Color preference problem
Next Topic:Finding source files
Goto Forum:
  


Current Time: Sun Jun 15 05:13:57 EDT 2025

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

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

Back to the top