From: Vitaly Chikunov Date: Mon, 10 Feb 2020 05:27:34 +0000 (+0300) Subject: elbrus: Workaround '#pragma message' [-Werror=unknown-pragmas] X-Git-Tag: v3.0.0~200 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=66253948abbb95c04dcf5e2d302feefb55c52a7a;p=openssl-gost%2Fengine.git elbrus: Workaround '#pragma message' [-Werror=unknown-pragmas] "lcc: "/usr/src/gost-engine/gosthash2012_ref.h", строка 15: ошибка: нераспознанная #pragma [-Werror=unknown-pragmas] # pragma message "Use regular implementation" ^" Also, cmake does not detect lcc. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f042c6a..8036d34 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,7 @@ include_directories(${OPENSSL_INCLUDE_DIR}) if (CMAKE_C_COMPILER_ID MATCHES "Clang") 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) + add_compile_options(-O2 -Werror -Wall -Wno-unused-parameter -Wno-unused-function -Wno-missing-braces -ggdb -Wno-error=unknown-pragmas) elseif(CMAKE_C_COMPILER_ID MATCHES "MSVC") add_definitions(-D_CRT_SECURE_NO_WARNINGS) add_definitions(-D_CRT_DEPRECATED_NO_WARNINGS)