Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Warning (Anachronism) in unix C++

Status
Not open for further replies.

unirams

Programmer
Dec 25, 2001
20
IN
Hi,
I have the following functions declared in my CPP program.

static int strToInt(const StrIntMap* map, const RWCString& str, int notFound, bool bNotFoundPassed, int ((*comp)(const char *, const char *)))

And the function is called with in an other function as shown below.

strToInt(const StrIntMap* map, const RWCString& str)
{ return strToInt(map, str, 0, false, strcmp); }

But it give me the following warning.

Warning (Anachronism): Formal argument comp of type int(*)(const char*,const char*) in call to strToInt(const StrIntMap*, const RWCString&, int, bool, int(*)(const char*,const char*)) is being passed extern "C
" int(*)(const char*,const char*).

Please anybody to help me to remove the above mentioned warning.

Thanks in advance.
Ram
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top