mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
libssh: dont build with '-pedantic-errors'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
ef2192c015
commit
5a24b1bb5f
12
packages/network/libssh/patches/libssh-gcc-5-fix.patch
Normal file
12
packages/network/libssh/patches/libssh-gcc-5-fix.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -Naur libssh-0.6.4/cmake/Modules/DefineCompilerFlags.cmake libssh-0.6.4.patch/cmake/Modules/DefineCompilerFlags.cmake
|
||||
--- libssh-0.6.4/cmake/Modules/DefineCompilerFlags.cmake 2014-09-15 20:54:34.000000000 +0200
|
||||
+++ libssh-0.6.4.patch/cmake/Modules/DefineCompilerFlags.cmake 2015-04-08 09:43:51.643578533 +0200
|
||||
@@ -10,7 +10,7 @@
|
||||
if (${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)")
|
||||
|
||||
# add -Wconversion ?
|
||||
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -pedantic -pedantic-errors")
|
||||
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -pedantic")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wshadow -Wmissing-prototypes -Wdeclaration-after-statement")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wunused -Wfloat-equal -Wpointer-arith -Wwrite-strings -Wformat-security")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-format-attribute")
|
Loading…
x
Reference in New Issue
Block a user