Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)
* Fix cmake not adding Werror on clang, and _lots_ of warnings * WIP: Build fixes * Cannot make intermediate blockhandler instance * Tiger's changes * Fix BitIndex check * Handle invalid NextState values in cMultiVersionProtocol Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
This commit is contained in:
co-authored by
Tiger Wang
parent
23021dd828
commit
a9031b6bae
@@ -7,7 +7,7 @@
|
||||
|
||||
|
||||
|
||||
class cBlockIceHandler :
|
||||
class cBlockIceHandler final :
|
||||
public cBlockHandler
|
||||
{
|
||||
using Super = cBlockHandler;
|
||||
@@ -54,7 +54,7 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
for (const auto Offset : Adjacents)
|
||||
for (const auto & Offset : Adjacents)
|
||||
{
|
||||
auto Position = a_RelPos + Offset;
|
||||
const auto Chunk = a_Chunk.GetRelNeighborChunkAdjustCoords(Position);
|
||||
|
||||
Reference in New Issue
Block a user