summaryrefslogtreecommitdiff
path: root/community/sarg/no-werror.patch
blob: 7d04349ba03a3c08fbbf75e56be58099bd69ff1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff --git a/CMakeLists.txt b/CMakeLists.txt
index aac6933..aa784ea 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -71,18 +71,6 @@ IF(HAVE_WEXTRA)
    SET_TARGET_PROPERTIES(sarg PROPERTIES COMPILE_FLAGS "${TMPCFLAGS} -Wextra -Wno-unused-parameter")
 ENDIF(HAVE_WEXTRA)
 
-CHECK_C_COMPILER_FLAG("-Werror=implicit-function-declaration" HAVE_WERROR_IMPLICIT_FUNCTION)
-IF(HAVE_WERROR_IMPLICIT_FUNCTION)
-   GET_TARGET_PROPERTY(TMPCFLAGS sarg COMPILE_FLAGS)
-   SET_TARGET_PROPERTIES(sarg PROPERTIES COMPILE_FLAGS "${TMPCFLAGS} -Werror=implicit-function-declaration")
-ENDIF(HAVE_WERROR_IMPLICIT_FUNCTION)
-
-CHECK_C_COMPILER_FLAG("-Werror=format" HAVE_WERROR_FORMAT)
-IF(HAVE_WERROR_FORMAT)
-   GET_TARGET_PROPERTY(TMPCFLAGS sarg COMPILE_FLAGS)
-   SET_TARGET_PROPERTIES(sarg PROPERTIES COMPILE_FLAGS "${TMPCFLAGS} -Werror=format")
-ENDIF(HAVE_WERROR_FORMAT)
-
 # Required header files
 CHECK_INCLUDE_FILE(stdio.h HAVE_STDIO_H)
 CHECK_INCLUDE_FILE(stdlib.h HAVE_STDLIB_H)