Author: loonycyborg
Date: Sun Jul 24 15:57:41 2011
New Revision: 50383

URL: http://svn.gna.org/viewcvs/wesnoth?rev=50383&view=rev
Log:
Worked around strict aliasing warning on gcc 4.4.4, hopefully 4.4.x too

Modified:
    trunk/src/network.cpp

Modified: trunk/src/network.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/network.cpp?rev=50383&r1=50382&r2=50383&view=diff
==============================================================================
--- trunk/src/network.cpp (original)
+++ trunk/src/network.cpp Sun Jul 24 15:57:41 2011
@@ -459,6 +459,7 @@
        union
        {
        char data[4] ALIGN_4;
+       Uint32 num;
        } buf;
        SDLNet_Write32(0, &buf);
        const int nbytes = SDLNet_TCP_Send(sock,&buf,4);
@@ -536,6 +537,7 @@
        union
        {
        char data[4] ALIGN_4;
+       Uint32 num;
        } buf;
 
        const TCPsocket psock = *i;


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to