Revert removal of cmocka-1.1.0-workaround-ppc64le-gcc.patch
This reverts partially commit b9d0124b85
.
This commit is contained in:
parent
b9d0124b85
commit
32463b5260
12
cmocka-1.1.0-workaround-ppc64le-gcc.patch
Normal file
12
cmocka-1.1.0-workaround-ppc64le-gcc.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up cmocka-1.1.0/cmake/Modules/DefineCompilerFlags.cmake.than cmocka-1.1.0/cmake/Modules/DefineCompilerFlags.cmake
|
||||||
|
--- cmocka-1.1.0/cmake/Modules/DefineCompilerFlags.cmake.than 2017-03-27 08:07:21.231279206 -0400
|
||||||
|
+++ cmocka-1.1.0/cmake/Modules/DefineCompilerFlags.cmake 2017-03-27 08:08:04.852048525 -0400
|
||||||
|
@@ -10,7 +10,7 @@ if (UNIX AND NOT WIN32)
|
||||||
|
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 -fno-builtin-strcmp -pedantic -pedantic-errors")
|
||||||
|
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 -Wundef")
|
Loading…
Reference in New Issue
Block a user