X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=CMakeLists.txt;h=d6e560698c0436902a774f0c091b8c9295529909;hb=4dc691d1177ad328f34bee01128b3a8aa23b2547;hp=3b8891d0f991abba849721f6453bed81c0eed36d;hpb=ec0ca76a5958c943eef76f1be2da444ab67ae2f4;p=openssl-gost%2Fengine.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 3b8891d..d6e5606 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 -Wno-deprecated-declarations) elseif(CMAKE_C_COMPILER_ID MATCHES "GNU") - add_compile_options(-O2 -Werror -Wall -Wno-unused-parameter -Wno-unused-function -Wno-missing-braces -ggdb -Wno-error=unknown-pragmas -Wno-deprecated-declarations) + add_compile_options(-O2 -Werror -Wall -Wno-unused-parameter -Wno-unused-function -Wno-missing-braces -ggdb -Wno-error=unknown-pragmas -Wno-error=pragmas -Wno-deprecated-declarations) elseif(CMAKE_C_COMPILER_ID MATCHES "MSVC") add_definitions(-D_CRT_SECURE_NO_WARNINGS) add_definitions(-D_CRT_DEPRECATED_NO_WARNINGS) @@ -69,8 +69,8 @@ endif() check_c_source_runs(" int main(void) { char buf[16] = { 0, 1, 2 }; - int *p = buf + 1; - int *q = buf + 2; + int *p = (int *)(buf + 1); + int *q = (int *)(buf + 2); return (*p == *q); } " RELAXED_ALIGNMENT)