mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 14:01:45 +00:00
- 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:
parent
e15416dc71
commit
ff2680baa9
6 changed files with 9 additions and 8 deletions
|
@ -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" )
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -370,5 +370,3 @@ void ASpecialSpot::Destroy()
|
||||||
if (state != NULL) state->RemoveSpot(this);
|
if (state != NULL) state->RemoveSpot(this);
|
||||||
Super::Destroy();
|
Super::Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue