#2437: Fix compilation with g++ 4.6
-------------------------------------------------+-------------------------
Reporter: cybersphinx | Owner:
Type: patch (an actual patch, not a | Status: new
request for one) | Milestone:
Priority: normal | unspecified
Component: other | Version:
Keywords: | git/master
Blocked By: | Operating System: All
| /Non-Specific
| Blocking:
-------------------------------------------------+-------------------------
I just removed all the variables it complained about, they might have been
intended to be used for something though.
setViewDistance() in src/display3d.cpp is probably supposed to do what I
changed it to, not sure about the consequences though.
When compiling with -O3, it still complains about the following though:
{{{
g++-4.6 -DHAVE_CONFIG_H -I. -I../../src -I.. -DYY_NO_INPUT
-D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng12
-DDEBUG -DWZ_DATADIR="\"/usr/local/share/warzone2100\""
-DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -O0 -g -Werror -Wno-
enum-compare -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wcast-
align -Wwrite-strings -Wpointer-arith -Wno-format-security -O3 -fstack-
protector -MT multisync.o -MD -MP -MF .deps/multisync.Tpo -c -o
multisync.o ../../src/multisync.cpp
../../lib/netplay/nettypes.h: In function ‘BOOL
recvStructureCheck(NETQUEUE)’:
../../lib/netplay/nettypes.h:97:3: error: ‘type’ may be used uninitialized
in this function [-Werror=uninitialized]
../../src/multisync.cpp:575:26: note: ‘type’ was declared here
cc1plus: all warnings being treated as errors
}}}
--
Ticket URL: <http://developer.wz2100.net/ticket/2437>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev