Como posso corrigir este aviso de ligação inconsistente vs10 da DL
Tenho uma série de avisos que estou tentando corrigir ao criar gdcm usando o visual studio 10 (versão de 32 bits):
4>..\..\..\..\gdcm\Utilities\gdcmexpat\lib\xmlparse.c(647): warning C4273: 'XML_ParserCreate' : inconsistent dll linkage
4> d:\src\gdcm\gdcm\utilities\gdcmexpat\lib\expat.h(206) : see previous definition of 'XML_ParserCreate'
A chamada de função em si se parece com:
XML_Parser XMLCALL
XML_ParserCreate(const XML_Char *encodingName)
{
return XML_ParserCreate_MM(encodingName, NULL, NULL);
}
Ond
#define XMLCALL __cdecl
XMLPARSEAPI(XML_Parser)
XML_ParserCreate(const XML_Char *encoding);
Ond
#define XMLPARSEAPI(type) XMLIMPORT type XMLCALL
#define XMLIMPORT __declspec(dllimport)
Se estou lendo isso corretamente, isso significa que a ligação é consistentemente __cdecl através do XMLCALL-- certo? Porque, nesse caso, o aviso é supérfluo ou estou interpretando mal isso?