diff --git a/src/CPUPipe.cpp b/src/CPUPipe.cpp index c898fe86b..94e46a010 100644 --- a/src/CPUPipe.cpp +++ b/src/CPUPipe.cpp @@ -72,7 +72,7 @@ void CPUPipe::winograd_transform_in(const std::vector& in, constexpr auto buffersize = 32; - std::array, Wpad> in_pad{0.0f}; + std::array, Wpad> in_pad{{{0.0f}}}; std::array buffer; auto buffer_offset = 0; diff --git a/src/Makefile b/src/Makefile index 299662727..fe89fa22c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -3,21 +3,21 @@ THE_OS := $(shell uname -s) default: @echo "Detected OS: ${THE_OS}" $(MAKE) CC=gcc CXX=g++ \ - CXXFLAGS='$(CXXFLAGS) -Wall -Wextra -Wno-ignored-attributes -Wno-deprecated-copy -pipe -O3 -g -ffast-math -flto -march=native -std=c++14 -DNDEBUG' \ + CXXFLAGS='$(CXXFLAGS) -Wall -Wextra -Wno-deprecated-copy -pipe -O3 -g -ffast-math -flto -march=native -std=c++14 -DNDEBUG' \ LDFLAGS='$(LDFLAGS) -flto -g' \ leelaz debug: @echo "Detected OS: ${THE_OS}" $(MAKE) CC=gcc CXX=g++ \ - CXXFLAGS='$(CXXFLAGS) -Wall -Wextra -Wno-ignored-attributes -Wno-deprecated-copy -pipe -Og -g -std=c++14' \ + CXXFLAGS='$(CXXFLAGS) -Wall -Wextra -Wno-deprecated-copy -pipe -Og -g -std=c++14' \ LDFLAGS='$(LDFLAGS) -g' \ leelaz clang: @echo "Detected OS: ${THE_OS}" $(MAKE) CC=clang CXX=clang++ \ - CXXFLAGS='$(CXXFLAGS) -Wall -Wextra -Wno-missing-braces -O3 -ffast-math -flto -march=native -std=c++14 -DNDEBUG' \ + CXXFLAGS='$(CXXFLAGS) -Wall -Wextra -Wno-deprecated-copy -O3 -ffast-math -flto -march=native -std=c++14 -DNDEBUG' \ LDFLAGS='$(LDFLAGS) -flto -fuse-linker-plugin' \ leelaz diff --git a/src/Network.h b/src/Network.h index 9f2d705d8..30aad64ef 100644 --- a/src/Network.h +++ b/src/Network.h @@ -77,6 +77,8 @@ class Network { using PolicyVertexPair = std::pair; using Netresult = NNCache::Netresult; + virtual ~Network() = default; + Netresult get_output(const GameState* const state, const Ensemble ensemble, const int symmetry = -1,