- added warnings for gcc for functions that are defined to return a value but they do not
- fixed a few defines that do the above
This commit is contained in:
parent
055293d027
commit
3e809c8c8e
|
@ -32,10 +32,13 @@ IF(CMAKE_COMPILER_IS_GNUCXX OR MINGW)
|
||||||
|
|
||||||
# Default compiler flags
|
# Default compiler flags
|
||||||
#SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s") ## Strip binary
|
#SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s") ## Strip binary
|
||||||
|
|
||||||
|
# For gcc warning options see: http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
|
||||||
IF(NOT MINGW)
|
IF(NOT MINGW)
|
||||||
ADD_DEFINITIONS("-fno-strict-aliasing -frounding-math -fsignaling-nans -mfpmath=sse -msse -rdynamic")
|
# For tons of verbose warnings add: -Wall
|
||||||
|
ADD_DEFINITIONS("-Wreturn-type -fno-strict-aliasing -frounding-math -fsignaling-nans -mfpmath=sse -msse -rdynamic")
|
||||||
ELSE()
|
ELSE()
|
||||||
ADD_DEFINITIONS("-fno-strict-aliasing -frounding-math -fsignaling-nans -mfpmath=sse -msse")
|
ADD_DEFINITIONS("-Wreturn-type -fno-strict-aliasing -frounding-math -fsignaling-nans -mfpmath=sse -msse")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
|
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
|
||||||
|
|
||||||
|
|
|
@ -597,8 +597,8 @@ public:
|
||||||
int getToTeam() const {return data.toTeam;}
|
int getToTeam() const {return data.toTeam;}
|
||||||
string getNetworkPlayerName() const {return data.networkPlayerName.getString(); }
|
string getNetworkPlayerName() const {return data.networkPlayerName.getString(); }
|
||||||
int getSwitchFlags() const {return data.switchFlags;}
|
int getSwitchFlags() const {return data.switchFlags;}
|
||||||
int addSwitchFlag(SwitchSetupRequestFlagType flag) { data.switchFlags |= flag;}
|
void addSwitchFlag(SwitchSetupRequestFlagType flag) { data.switchFlags |= flag;}
|
||||||
int clearSwitchFlag(SwitchSetupRequestFlagType flag) { data.switchFlags &= ~flag;}
|
void clearSwitchFlag(SwitchSetupRequestFlagType flag) { data.switchFlags &= ~flag;}
|
||||||
|
|
||||||
virtual bool receive(Socket* socket);
|
virtual bool receive(Socket* socket);
|
||||||
virtual void send(Socket* socket) const;
|
virtual void send(Socket* socket) const;
|
||||||
|
|
Loading…
Reference in New Issue