Henrik Goldman <[EMAIL PROTECTED]> wrote:
: Hi,
: I'm seeing a weird problem on hp-ux (ia64) using g++ 4.1.1.
: Here below is a tiny bit of code which sets up the nessecary code for doing
: a select():
: 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
FD_SET is probably a macro. I would take a look at the expanded code, which
might try to do some illegal pointer assignment.
--
-lauther
[nosave]
----------------------------------------------------------------------------
Ulrich Lauther ph: +49 89 636 48834 fx: ... 636 42284
Siemens CT SE 6 Internet: [EMAIL PROTECTED]
_______________________________________________
help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus