Fix warnings with MinGW

This commit is contained in:
Matt Arsenault
2013-01-01 17:16:50 -05:00
committed by Matt Arsenault
parent 1ffc5d11dc
commit 6ecb796e77
2 changed files with 7 additions and 2 deletions

View File

@@ -234,8 +234,10 @@ int zmq::signaler_t::make_fdpair (fd_t *r_, fd_t *w_)
return 0;
#elif defined ZMQ_HAVE_WINDOWS
SECURITY_DESCRIPTOR sd = {0};
SECURITY_ATTRIBUTES sa = {0};
SECURITY_DESCRIPTOR sd;
SECURITY_ATTRIBUTES sa;
memset (&sd, 0, sizeof (sd));
memset (&sa, 0, sizeof (sa));
InitializeSecurityDescriptor(&sd, SECURITY_DESCRIPTOR_REVISION);
SetSecurityDescriptorDacl(&sd, TRUE, 0, FALSE);