mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
Ignore function pointer cast warnings
Use GCC pragmas as these warnings are enabled by -Wpedantic and there's no way to disable them selectively.
This commit is contained in:
@@ -340,6 +340,7 @@ xmlModulePlatformClose(void *handle)
|
||||
static int
|
||||
xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
|
||||
{
|
||||
XML_IGNORE_PEDANTIC_WARNINGS
|
||||
#ifdef _WIN32_WCE
|
||||
/*
|
||||
* GetProcAddressA seems only available on WinCE
|
||||
@@ -349,6 +350,7 @@ xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
|
||||
*symbol = GetProcAddress(handle, name);
|
||||
#endif
|
||||
return (NULL == *symbol) ? -1 : 0;
|
||||
XML_POP_WARNINGS
|
||||
}
|
||||
|
||||
#endif /* _WIN32 */
|
||||
|
Reference in New Issue
Block a user