我有一系列的警告,我正在修复
gdcm使用visual studio 10(32位版本)时修复:
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'
函数调用本身就像:
XML_Parser XMLCALL
XML_ParserCreate(const XML_Char *encodingName)
{
return XML_ParserCreate_MM(encodingName, NULL, NULL);
}
哪里
#define XMLCALL __cdecl
和
XMLPARSEAPI(XML_Parser)
XML_ParserCreate(const XML_Char *encoding);
哪里
#define XMLPARSEAPI(type) XMLIMPORT type XMLCALL
和
#define XMLIMPORT __declspec(dllimport)
如果我正在正确阅读,那意味着通过XMLCALL一直是__cdecl的链接 – 对吗?因为如果是这样,那么警告是多余的,还是我误解了这个?