diff --git a/CMakeLists.txt b/CMakeLists.txt index e7c3f0a..c4959b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,6 +34,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") set(FLAGS "${FLAGS} -Wno-c++98-compat-pedantic -Wno-padded") set(FLAGS "${FLAGS} -Wno-float-equal") set(FLAGS "${FLAGS} -Wno-weak-template-vtables") + set(FLAGS "${FLAGS} -Wno-unsafe-buffer-usage") elseif(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU") set(FLAGS "${FLAGS} -fno-omit-frame-pointer -fmax-errors=1") set(FLAGS "${FLAGS} -Werror -Wall -Wextra") diff --git a/gmodel.hpp b/gmodel.hpp index a857015..2bd6240 100644 --- a/gmodel.hpp +++ b/gmodel.hpp @@ -166,7 +166,7 @@ struct Point : public Object { Vector pos; double size; Point(); - ~Point(); + ~Point() override; }; typedef std::shared_ptr PointPtr;