From: Dmitry Belyavskiy Date: Fri, 15 Feb 2019 18:09:08 +0000 (+0300) Subject: Clang options X-Git-Tag: v3.0.0~303 X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=commitdiff_plain;h=b629c446ff7246e526999bfdd2657e774faf306f;p=openssl-gost%2Fengine.git Clang options --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 261decd..198d746 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ find_package(OpenSSL 1.1.1 REQUIRED) include_directories(${OPENSSL_INCLUDE_DIR}) if (CMAKE_C_COMPILER_ID MATCHES "Clang") - add_compile_options(-Qunused-arguments) + add_compile_options(-O2 -Werror -Wall -Wno-unused-parameter -Wno-unused-function -Wno-missing-braces -ggdb -Qunused-arguments) elseif(CMAKE_C_COMPILER_ID MATCHES "GNU") add_compile_options(-O2 -Werror -Wall -Wno-unused-parameter -Wno-unused-function -Wno-missing-braces -ggdb) elseif(CMAKE_C_COMPILER_ID MATCHES "MSVC")