From 870d87b3b93d34207301c0b3fb084b275599dcb5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 31 Oct 2022 15:29:40 +0100 Subject: a --- CMakeLists.txt | 4 +++- editor/app.hpp | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 46f9376c..25e54528 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -100,7 +100,6 @@ else() endif() if(CMAKE_CXX_COMPILER_ID MATCHES "Clang$") - add_compile_options(-Wno-reserved-macro-identifier) endif() @@ -121,6 +120,9 @@ if(MSVC) add_definitions(/FI"compat/prelude.hpp") else() add_definitions(-include compat/prelude.hpp) + if(CMAKE_CXX_COMPILER_ID MATCHES "Clang$") + add_compile_options(-Wimplicit-fallthrough -Werror=implicit-fallthrough) + endif() endif() add_definitions( diff --git a/editor/app.hpp b/editor/app.hpp index cfea9c12..3d25fb4e 100644 --- a/editor/app.hpp +++ b/editor/app.hpp @@ -32,6 +32,9 @@ struct cursor_state final { struct app final : floormat_app { + static int run_from_argv(int argv, const char* const* argc); + +private: app(fm_settings&& opts); ~app() override; -- cgit v1.2.3