diff options
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | editor/app.hpp | 3 |
2 files changed, 6 insertions, 1 deletions
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; |