Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1528,24 +1528,15 @@ GSocketError _GAddress_Init_UNIX(GAddress *address)
|
||||
return GSOCK_INVADDR;
|
||||
}
|
||||
|
||||
GSocketError GAddress_UNIX_SetPath(GAddress *address, const char *path)
|
||||
GSocketError GAddress_UNIX_SetPath(GAddress *address, const char *WXUNUSED(path))
|
||||
{
|
||||
#if defined(__BORLANDC__)
|
||||
/* prevents unused variable message in Borland */
|
||||
(void)path;
|
||||
#endif
|
||||
assert (address != NULL);
|
||||
address->m_error = GSOCK_INVADDR;
|
||||
return GSOCK_INVADDR;
|
||||
}
|
||||
|
||||
GSocketError GAddress_UNIX_GetPath(GAddress *address, char *path, size_t sbuf)
|
||||
GSocketError GAddress_UNIX_GetPath(GAddress *address, char *WXUNUSED(path), size_t WXUNUSED(sbuf))
|
||||
{
|
||||
#if defined(__BORLANDC__)
|
||||
/* prevents unused variable message in Borland */
|
||||
(void)path;
|
||||
(void)sbuf;
|
||||
#endif
|
||||
assert (address != NULL);
|
||||
address->m_error = GSOCK_INVADDR;
|
||||
return GSOCK_INVADDR;
|
||||
|
||||
Reference in New Issue
Block a user