> fd_set fdread, fdwrite;
>
> FD_ZERO(&fdread);
>
> FD_ZERO(&fdwrite);
>
> FD_SET(m_IncomingSocket.GetSocket(), &fdread);
>
> FD_SET(m_IncomingSocket.GetSocket(), &fdwrite);
>
> For the last two lines I get the following warning:
>
> warning: dereferencing type-punned pointer will break strict-aliasing rules
> warning: dereferencing type-punned pointer will break strict-aliasing rules

Try renaming fdread and fdwrite; perhaps there are other uses of these
variable names?  Otherwise the code looks good, so I don't understand
the compiler warnings.

Mike

_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to