1
0
cuberite-2a/src
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
..
Bindings Fix comments 2015-05-28 12:54:04 +01:00
BlockEntities Fix comments 2015-05-28 12:54:04 +01:00
Blocks Made -Weverything an error. 2015-05-24 12:56:56 +01:00
Entities Merge branch 'master' into PreventNewWarnings 2015-05-29 00:12:56 +01:00
Generating Fix FreeBSD/clang errors caused by -Werror 2015-05-30 02:23:57 -06:00
HTTPServer Made -Weverything an error. 2015-05-24 12:56:56 +01:00
Items Merge branch 'master' into PreventNewWarnings 2015-05-28 11:05:41 +01:00
Mobs Merge pull request #2166 from SafwatHalaby/squid 2015-05-30 10:31:26 +03:00
Noise Fix comments 2015-05-28 12:54:04 +01:00
OSSupport Fix FreeBSD/clang errors caused by -Werror 2015-05-30 02:23:57 -06:00
PolarSSL++ Fix comments 2015-05-28 12:54:04 +01:00
Protocol Merge branch 'master' into PreventNewWarnings 2015-05-28 11:05:41 +01:00
Resources
Simulator Fix comments 2015-05-28 12:54:04 +01:00
UI Fix comments 2015-05-28 12:54:04 +01:00
WorldStorage Disable -Werror for warnings in tests. 2015-05-24 14:16:05 +01:00
AllocationPool.h Make -Werror disabling file only 2015-05-19 19:32:10 +01:00
BiomeDef.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
BiomeDef.h GetSnowStartHeight returns an int 2015-02-28 17:27:28 +01:00
BlockArea.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
BlockArea.h Made -Weverything an error. 2015-05-24 12:56:56 +01:00
BlockID.cpp Fixed reversed logic in StringToDimension. 2015-05-30 00:02:43 +01:00
BlockID.h Added Rabbits 2014-12-20 10:31:34 +01:00
BlockInfo.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
BlockInfo.h En masse NULL -> nullptr replace 2014-10-22 20:12:49 -07:00
BlockInServerPluginInterface.h Placing a fluid from bucket calls plugin hooks. 2015-04-14 10:49:01 +02:00
BlockTracer.h Fixed basic whitespace problems. 2014-07-17 16:33:09 +02:00
BoundingBox.cpp Fixed style: spaces after commas. 2014-07-19 14:53:41 +02:00
BoundingBox.h More style checking. 2015-05-09 12:58:54 +02:00
Broadcaster.cpp Fixed some Visual Studio warnings 2015-05-08 23:32:02 +01:00
Broadcaster.h Added support for additional data in the ParticleEffect Packet 2015-05-07 03:47:46 +01:00
BuildInfo.h.cmake Added abilty to set build info 2014-09-10 16:07:00 +01:00
ByteBuffer.cpp Added VarInt64, normalized cPacketizer datatype names. 2015-03-22 23:09:23 +01:00
ByteBuffer.h Added VarInt64, normalized cPacketizer datatype names. 2015-03-22 23:09:23 +01:00
ChatColor.cpp Refactored cChatColor 2014-07-19 11:09:39 -07:00
ChatColor.h Style: Normalized to no spaces before closing parenthesis. 2014-07-21 17:40:43 +02:00
CheckBasicStyle.lua ToLua now generates cLuaState::Push() and GetStackValue() 2015-05-12 09:20:54 +02:00
Chunk.cpp Make -Werror disabling file only 2015-05-19 19:32:10 +01:00
Chunk.h CheckBasicStyle: checks spaces around * and &. 2015-05-09 12:58:55 +02:00
ChunkData.cpp Fixed Bug in cChunkData. 2015-03-10 20:32:01 +00:00
ChunkData.h En masse NULL -> nullptr replace 2014-10-22 20:12:49 -07:00
ChunkDataCallback.h Removed redundant semicolons and re-added warning 2014-07-24 11:21:37 -07:00
ChunkDef.h Fixed a lot of warnings 2015-05-19 11:50:59 +01:00
ChunkMap.cpp CheckBasicStyle: checks spaces around * and &. 2015-05-09 12:58:55 +02:00
ChunkMap.h CheckBasicStyle: checks spaces around * and &. 2015-05-09 12:58:55 +02:00
ChunkSender.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
ChunkSender.h CheckBasicStyle: checks spaces around * and &. 2015-05-09 12:58:55 +02:00
ChunkStay.cpp En masse NULL -> nullptr replace 2014-10-22 20:12:49 -07:00
ChunkStay.h
ClientHandle.cpp Fix Destroy() calling behaviour 2015-05-30 00:23:34 +01:00
ClientHandle.h Merge pull request #1848 from scottwillmoore/ImplementTitleCommand 2015-05-26 08:46:16 +02:00
CMakeLists.txt Merge branch 'master' into PreventNewWarnings 2015-05-28 11:05:41 +01:00
CommandOutput.cpp Exported cPluginManager:ExecuteConsoleCommand() to Lua API. 2015-05-10 22:51:16 +02:00
CommandOutput.h Exported cPluginManager:ExecuteConsoleCommand() to Lua API. 2015-05-10 22:51:16 +02:00
CompositeChat.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
CompositeChat.h Moved chat json creating to the CompositeChat class. 2014-09-13 20:27:10 +02:00
CraftingRecipes.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
CraftingRecipes.h En masse NULL -> nullptr replace 2014-10-22 20:12:49 -07:00
Cuboid.cpp Fixed a ToLua warning - operator = not supported. 2014-08-03 22:04:48 +02:00
Cuboid.h Fixed a ToLua warning - operator = not supported. 2014-08-03 22:04:48 +02:00
DeadlockDetect.cpp Suggestions 2014-10-23 23:58:01 +01:00
DeadlockDetect.h Migrated cSleep and cTimer to std::chrono 2014-10-20 18:59:40 +01:00
Defines.h Fix bearbins comments 2015-05-24 15:25:52 +01:00
Enchantments.cpp Make -Werror disabling file only 2015-05-19 19:32:10 +01:00
Enchantments.h Make -Werror disabling file only 2015-05-19 19:32:10 +01:00
Endianness.h CheckBasicStyle: checks spaces around * and &. 2015-05-09 12:58:55 +02:00
FastRandom.cpp properly this time? 2015-05-17 16:30:13 +01:00
FastRandom.h Fixed grass spread, closes #1743 2015-03-14 00:59:53 +00:00
ForEachChunkProvider.h
FurnaceRecipe.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
FurnaceRecipe.h Implemented vanilla-like shift click. 2014-12-13 18:49:11 +01:00
Globals.cpp
Globals.h Move make_unique into a namespace to avoid ADL issues 2015-05-16 10:47:04 +01:00
IniFile.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
IniFile.h Made -Weverything an error. 2015-05-24 12:56:56 +01:00
Inventory.cpp Merge branch 'master' into PreventNewWarnings 2015-05-28 11:05:41 +01:00
Inventory.h Fixes #2052 2015-05-18 14:30:16 +01:00
Item.cpp En masse NULL -> nullptr replace 2014-10-22 20:12:49 -07:00
Item.h Changed the IsEnchantable() comment again. 2014-09-02 20:17:31 +02:00
ItemGrid.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
ItemGrid.h Clarified RemoveItem()'s comments. 2014-07-18 23:47:46 +02:00
LeakFinder.cpp
LeakFinder.h En masse NULL -> nullptr replace 2014-10-22 20:12:49 -07:00
LightingThread.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
LightingThread.h En masse NULL -> nullptr replace 2014-10-22 20:12:49 -07:00
LinearInterpolation.cpp
LinearInterpolation.h
LinearUpscale.h En masse NULL -> nullptr replace 2014-10-22 20:12:49 -07:00
LineBlockTracer.cpp Fix comments 2015-05-28 12:54:04 +01:00
LineBlockTracer.h
Logger.cpp Fixed format warning. 2014-12-07 17:29:39 +01:00
Logger.h CheckBasicStyle: checks spaces around * and &. 2015-05-09 12:58:55 +02:00
LoggerListeners.cpp Fix comments 2015-05-28 12:54:04 +01:00
LoggerListeners.h ProtoProxy: Fixed connection and logging. 2015-03-22 15:00:51 +01:00
main.cpp Moved no buffering command line argument to tclap 2015-05-20 01:50:04 +01:00
Map.cpp Make -Werror disabling file only 2015-05-19 19:32:10 +01:00
Map.h More style checking. 2015-05-09 12:58:54 +02:00
MapManager.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
MapManager.h Make -Werror disabling file only 2015-05-19 19:32:10 +01:00
Matrix4.h Made -Weverything an error. 2015-05-24 12:56:56 +01:00
MCServer.vcproj.user
MemoryLeak.h
MemorySettingsRepository.cpp Initial implementation of IniFile overloading 2015-05-16 10:46:51 +01:00
MemorySettingsRepository.h Initial implementation of IniFile overloading 2015-05-16 10:46:51 +01:00
MobCensus.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
MobCensus.h CheckBasicStyle: checks spaces around * and &. 2015-05-09 12:58:55 +02:00
MobFamilyCollecter.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
MobFamilyCollecter.h Fixed spaces around single-line comments. 2014-07-17 19:13:23 +02:00
MobProximityCounter.cpp CheckBasicStyle: checks spaces around * and &. 2015-05-09 12:58:55 +02:00
MobProximityCounter.h CheckBasicStyle: checks spaces around * and &. 2015-05-09 12:58:55 +02:00
MobSpawner.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
MobSpawner.h CheckBasicStyle: checks spaces around * and &. 2015-05-09 12:58:55 +02:00
MonsterConfig.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
MonsterConfig.h CheckBasicStyle: checks spaces around * and &. 2015-05-09 12:58:55 +02:00
OverridesSettingsRepository.cpp Fixed wrong copy/paste 2015-05-23 11:30:15 +01:00
OverridesSettingsRepository.h Initial implementation of IniFile overloading 2015-05-16 10:46:51 +01:00
ProbabDistrib.cpp Fixed possible crash in cProbabDistrib 2015-05-14 16:49:13 +02:00
ProbabDistrib.h
RankManager.cpp More style checking. 2015-05-09 12:58:54 +02:00
RankManager.h Added player restrictions to the DB and API. 2015-04-25 21:05:35 +02:00
RCONServer.cpp Initial implementation of IniFile overloading 2015-05-16 10:46:51 +01:00
RCONServer.h 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
Root.cpp Fix for the way connecting clients receive player lists and broadcast chat 2015-05-28 19:43:16 -07:00
Root.h Fix for the way connecting clients receive player lists and broadcast chat 2015-05-28 19:43:16 -07:00
Scoreboard.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
Scoreboard.h CheckBasicStyle: checks spaces around * and &. 2015-05-09 12:58:55 +02:00
Server.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
Server.h Initial implementation of IniFile overloading 2015-05-16 10:46:51 +01:00
SetChunkData.cpp Merge pull request #1945 from Woazboat/CodeCleanup_refactored 2015-05-08 21:52:41 +02:00
SetChunkData.h cSetChunkData constructor explicitly requires std::move() instead of 2015-04-27 21:18:56 +02:00
SettingsRepositoryInterface.h Added deoxy comments 2015-05-16 12:46:43 +01:00
StackWalker.cpp
StackWalker.h En masse NULL -> nullptr replace 2014-10-22 20:12:49 -07:00
Statistics.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
Statistics.h Fixed spaces around single-line comments. 2014-07-17 19:13:23 +02:00
StringCompression.cpp Anvil: switched inflate to stream mode. 2014-09-03 19:36:53 +02:00
StringCompression.h Anvil: switched inflate to stream mode. 2014-09-03 19:36:53 +02:00
StringUtils.cpp StringUtils: Fixed StringSplitWithQuotes(). 2015-05-10 21:39:14 +02:00
StringUtils.h Fix FreeBSD/clang errors caused by -Werror 2015-05-30 02:23:57 -06:00
Tracer.cpp Make -Werror disabling file only 2015-05-19 19:32:10 +01:00
Tracer.h CheckBasicStyle: checks spaces around * and &. 2015-05-09 12:58:55 +02:00
Vector3.h Merge remote-tracking branch 'origin/master' into warnings 2015-05-10 12:16:20 +01:00
VoronoiMap.cpp Voronoi biomegen: Added JitterSize and OddRowOffset. 2014-09-17 23:24:22 +02:00
VoronoiMap.h More style checking. 2015-05-09 12:58:54 +02:00
WebAdmin.cpp Fix comments 2015-05-28 12:54:04 +01:00
WebAdmin.h Added URL member to the HTTPRequest API class. 2015-04-21 10:54:43 +02:00
World.cpp Merge branch 'master' into PreventNewWarnings 2015-05-23 07:33:52 -07:00
World.h Made -Weverything an error. 2015-05-24 12:56:56 +01:00
XMLParser.h More style checking. 2015-05-09 12:58:54 +02:00