]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
elbrus: Workaround '#pragma message' [-Werror=unknown-pragmas]
authorVitaly Chikunov <vt@altlinux.org>
Mon, 10 Feb 2020 05:27:34 +0000 (08:27 +0300)
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>
Mon, 10 Feb 2020 08:28:23 +0000 (11:28 +0300)
"lcc: "/usr/src/gost-engine/gosthash2012_ref.h", строка 15: ошибка:
          нераспознанная #pragma [-Werror=unknown-pragmas]
  # pragma message "Use regular implementation"
           ^"

Also, cmake does not detect lcc.

CMakeLists.txt

index f042c6ad33186cf6e2a99ccbf261ae90c04e2fa9..8036d342f192ebd36140897d1c441cb1e41551c0 100644 (file)
@@ -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)