summaryrefslogtreecommitdiff
path: root/app-crypt/yubihsm-shell/files/yubihsm-shell-2.6.0-remove-hardcoded-compiler-opts.patch
blob: 12f7115499b531ae155783dfde44f5df0511d63f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
We don't want -Werror or other stuff forced on us and our toolchain already
defaults to various hardening options.
--- a/cmake/SecurityFlags.cmake
+++ b/cmake/SecurityFlags.cmake
@@ -1,8 +1,6 @@
 include(CheckCCompilerFlag)
 
-if (CMAKE_C_COMPILER_ID STREQUAL "Clang" OR
-    CMAKE_C_COMPILER_ID STREQUAL "AppleClang" OR
-    CMAKE_C_COMPILER_ID STREQUAL "GNU")
+if (FALSE)
 
     add_compile_options (-Wall -Wextra -Werror)
     add_compile_options (-Wformat -Wformat-nonliteral -Wformat-security)