Skip to main content



      Home
Home » Newcomers » Newcomers » CODAN errors(C++ code compiles but CODAN still shows errors with Delegate definitions)
CODAN errors [message #1775375] Sat, 28 October 2017 12:22
Eclipse UserFriend
I am using the ESP8266 sample code with the GCC cross compiler. The samples compile with no errors but in Eclipse CDT 8.6.0 on Linux but there are several errors listed by CODAN.

For example...

WifiEvents.onStationGotIP(gotIP);

Gives this error:

Invalid arguments '
Candidates are:
void onStationGotIP(Delegate<void (IPAddress, IPAddress, IPAddress)>)

gotIP is defined immediately above in the source file as:

static void gotIP(IPAddress ip, IPAddress netmask, IPAddress gateway)


onStationGotIP is defined as:

void onStationGotIP(StationGotIPDelegate delegateFunction);

StationGotIPDelegate is typedef as

typedef Delegate<void(IPAddress, IPAddress, IPAddress)> StationGotIPDelegate;


All of this looks perfectly legal code to me but CODAN does not seem to understand it. How can I teach CODAN to handle this correctly like the GCC cross compiler does?
Previous Topic:Java EE / Solaris 10 / Invalid argument
Next Topic:Eclipse PDT Download sha512sum failing...
Goto Forum:
  


Current Time: Mon Jun 16 13:04:53 EDT 2025

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

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

Back to the top