- Removed new warning when using CMake 2.6.

- Fixed compilation of snes_spc on GCC <4.3.
- Fixed compilation of zstring.h on 32-bit MinGW, where SIZE_MAX
  and UINT_MAX are not considered identical by the preprocessor.

SVN r1096 (trunk)
This commit is contained in:
Randy Heit 2008-07-31 17:13:21 +00:00
parent e15416dc71
commit ff2680baa9
6 changed files with 9 additions and 8 deletions

View file

@ -5,7 +5,7 @@ include( CheckCXXCompilerFlag )
set( CMAKE_BUILD_TYPE "RelWithDebInfo" ) set( CMAKE_BUILD_TYPE "RelWithDebInfo" )
if( CMAKE_COMPILER_IS_GNUCXX ) if( CMAKE_COMPILER_IS_GNUCXX )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fomit-frame-pointer -Wno-array-bounds" ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fomit-frame-pointer" )
check_cxx_compiler_flag( -Wno-array-bounds HAVE_NO_ARRAY_BOUNDS ) check_cxx_compiler_flag( -Wno-array-bounds HAVE_NO_ARRAY_BOUNDS )
if( HAVE_NO_ARRAY_BOUNDS ) if( HAVE_NO_ARRAY_BOUNDS )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-array-bounds" ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-array-bounds" )

View file

@ -1,4 +1,9 @@
cmake_minimum_required( VERSION 2.4 ) cmake_minimum_required( VERSION 2.4 )
if( COMMAND cmake_policy )
cmake_policy( SET CMP0003 NEW )
endif( COMMAND cmake_policy )
include( CheckFunctionExists ) include( CheckFunctionExists )
include( FindPkgConfig ) include( FindPkgConfig )

View file

@ -251,4 +251,3 @@ void A_SpawnSound (AActor *self)
S_Sound (self, CHAN_BODY, "brain/cube", 1, ATTN_IDLE); S_Sound (self, CHAN_BODY, "brain/cube", 1, ATTN_IDLE);
A_SpawnFly (self); A_SpawnFly (self);
} }

View file

@ -370,5 +370,3 @@ void ASpecialSpot::Destroy()
if (state != NULL) state->RemoveSpot(this); if (state != NULL) state->RemoveSpot(this);
Super::Destroy(); Super::Destroy();
} }

View file

@ -140,10 +140,9 @@ public:
const char *GetChars() const { return Chars; } const char *GetChars() const { return Chars; }
const char &operator[] (int index) const { return Chars[index]; } const char &operator[] (int index) const { return Chars[index]; }
#if SIZE_MAX != UINT_MAX
const char &operator[] (unsigned int index) const { return Chars[index]; } const char &operator[] (unsigned int index) const { return Chars[index]; }
#endif const char &operator[] (unsigned long index) const { return Chars[index]; }
const char &operator[] (size_t index) const { return Chars[index]; } const char &operator[] (unsigned long long index) const { return Chars[index]; }
FString &operator = (const FString &other); FString &operator = (const FString &other);
FString &operator = (const char *copyStr); FString &operator = (const char *copyStr);