From 413e2c941e5335dac43afa84a10ae80f87985573 Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Tue, 27 Aug 2019 17:00:53 +0300 Subject: [PATCH] Add warning checks --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 80c2c5d9..ffae124c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,6 +86,11 @@ if(${CMAKE_VERSION} VERSION_LESS "3.0.2") endmacro() endif() +if(NOT MSVC) + add_compile_options(-Wempty-body) # GCC/Clang flag + add_compile_options(-Wreturn-type) # GCC/Clang flag +endif() + if(BUILD_CLIENT) add_subdirectory(cl_dll) endif()