1
0
cuberite-2a/src/Generating
linnemannr ee34e7131a Fix FreeBSD/clang errors caused by -Werror
With FreeBSD/clang, -Werror combined with the configured warning flags yields
some fatal errors, specifically related to signed conversion, 64 to 32 bit
conversion, and tautological compares.

CONTRIBUTORS

	Add myself to the contributor list

src/Generating/FinishGen.cpp

	In cFinishGenPassiveMobs::GetRandomMob(), change the type of RandMob
	from size_t to the difference_type of the ListOfSpawnables iterator
	MobIter. Using size_t triggers a 64 bit to 32 bit conversion if the
	difference_type of the iterator class is 64 bit

	Also explicitly cast the noise expression to unsigned long so we don't
	get a signed conversion warning from the modulo against
	ListOfSpawnables.size()

src/OSSupport/StackTrace.cpp

	FreeBSD 10 and above includes a non glibc implementation of benchmark()
	for which size_t, not int, is the return type. To account for this and
	prevent a signed conversion warning, abstract the type for numItems with
	a macro btsize

src/StringUtils.h

	In StringToInteger(), correct a tautological compare warning for
	unsigned types with the template. If T is unsigned, comparing
	std::numeric_limits<T>::min() to the unsigned result is always
	false. That control can enter this branch in an evaluated template with
	an unsigned type T may also permit a signed number to be parsed and
	erroneously stripped of its signedness at runtime. To guard against this
	and avoid the warning in the case that the number parsed from the string
	is non-positive, return false and don't try to parse if T is unsigned
	and control enters the non-positive branch
2015-05-30 02:23:57 -06:00
..
Prefabs Removed iniFile library from linux dependencies. 2014-10-23 15:26:43 +02:00
BioGen.cpp Fix comments 2015-05-24 14:58:24 +01:00
BioGen.h Fixed a lot of warnings 2015-05-19 11:50:59 +01:00
Caves.cpp CheckBasicStyle: checks spaces around * and &. 2015-05-09 12:58:55 +02:00
Caves.h Moved all Noise-related files into a separate folder. 2014-11-18 12:07:08 +01:00
ChunkDesc.cpp Fix comments 2015-05-28 12:54:04 +01:00
ChunkDesc.h Fix comments 2015-05-24 14:58:24 +01:00
ChunkGenerator.cpp More style checking. 2015-05-09 12:58:54 +02:00
ChunkGenerator.h Added a cWorld:PrepareChunk function. 2014-12-10 22:35:16 +01:00
CMakeLists.txt Made -Weverything an error. 2015-05-24 12:56:56 +01:00
CompoGen.cpp Changed default MaxThreshold value 2015-04-21 16:30:18 +02:00
CompoGen.h Changed Nether composition to change the threshold from a cubic noise 2015-04-20 18:03:25 +02:00
CompoGenBiomal.cpp Fixed compile and a few more warnings 2015-05-19 12:28:31 +01:00
CompoGenBiomal.h Merge remote-tracking branch 'origin-master' into c++11 2014-11-25 23:03:33 +00:00
ComposableGenerator.cpp Fixed a lot of warnings 2015-05-19 11:50:59 +01:00
ComposableGenerator.h Merge remote-tracking branch 'origin-master' into c++11 2014-11-25 23:03:33 +00:00
CompositedHeiGen.h Merge remote-tracking branch 'origin-master' into c++11 2014-11-25 23:03:33 +00:00
DistortedHeightmap.cpp DistortedHeightmap: Added missing initialization. 2014-12-01 00:14:27 +01:00
DistortedHeightmap.h Merge remote-tracking branch 'origin-master' into c++11 2014-11-25 23:03:33 +00:00
DungeonRoomsFinisher.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
DungeonRoomsFinisher.h Merge remote-tracking branch 'origin-master' into c++11 2014-11-25 23:03:33 +00:00
EndGen.cpp Fixed defect #43671 in Coverity list. 2015-01-23 19:06:25 +03:00
EndGen.h Merge remote-tracking branch 'origin-master' into c++11 2014-11-25 23:03:33 +00:00
FinishGen.cpp Fix FreeBSD/clang errors caused by -Werror 2015-05-30 02:23:57 -06:00
FinishGen.h GlowStone: Changed order of initialization of member variables 2015-04-19 20:08:51 +02:00
GridStructGen.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
GridStructGen.h Moved all Noise-related files into a separate folder. 2014-11-18 12:07:08 +01:00
HeiGen.cpp Fix comments 2015-05-24 14:58:24 +01:00
HeiGen.h Fixed a lot of warnings 2015-05-19 11:50:59 +01:00
IntGen.h More style checking. 2015-05-09 12:58:54 +02:00
MineShafts.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
MineShafts.h Moved all Noise-related files into a separate folder. 2014-11-18 12:07:08 +01:00
NetherFortGen.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
NetherFortGen.h Merge branch 'master' of github.com:mc-server/MCServer 2014-06-16 15:12:50 +01:00
Noise3DGenerator.cpp More fixed warnings 2015-05-19 13:34:52 +01:00
Noise3DGenerator.h Merge remote-tracking branch 'origin-master' into c++11 2014-11-25 23:03:33 +00:00
PieceGenerator.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
PieceGenerator.h Moved all Noise-related files into a separate folder. 2014-11-18 12:07:08 +01:00
POCPieceGenerator.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
POCPieceGenerator.h A working POCPiece generator. 2014-03-09 22:04:29 +01:00
Prefab.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
Prefab.h Basic style fixes. 2014-07-17 22:50:58 +02:00
PrefabPiecePool.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
PrefabPiecePool.h Merge remote-tracking branch 'origin/master' into VillageGen 2014-05-29 09:14:47 +02:00
ProtIntGen.h Fix comments 2015-05-24 14:58:24 +01:00
RainbowRoadsGen.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
RainbowRoadsGen.h More style checking. 2015-05-09 12:58:54 +02:00
Ravines.cpp More fixed warnings 2015-05-19 13:34:52 +01:00
Ravines.h Moved all Noise-related files into a separate folder. 2014-11-18 12:07:08 +01:00
RoughRavines.cpp More fixed warnings 2015-05-19 13:34:52 +01:00
RoughRavines.h RoughRavines: Made floor and ceiling settings-adjustable. 2014-07-27 19:57:47 +02:00
ShapeGen.cpp Correct world height validations. 2015-03-19 20:32:17 -04:00
StructGen.cpp Fixed some more warnings 2015-05-19 15:21:29 +01:00
StructGen.h Merge remote-tracking branch 'origin-master' into c++11 2014-11-25 23:03:33 +00:00
TestRailsGen.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
TestRailsGen.h More style checking. 2015-05-09 12:58:54 +02:00
Trees.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
Trees.h Merge pull request #1594 from mc-server/LargeOakTree 2014-11-20 21:30:50 +01:00
TwoHeights.cpp Fixed missing overrides and added a ignore flag for reserved macro for clang version 3.6 and higher. 2015-05-23 16:28:37 +02:00
TwoHeights.h Merge remote-tracking branch 'origin-master' into c++11 2014-11-25 23:03:33 +00:00
UnderwaterBaseGen.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
UnderwaterBaseGen.h More style checking. 2015-05-09 12:58:54 +02:00
VillageGen.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
VillageGen.h More style checking. 2015-05-09 12:58:54 +02:00