From a555f3de3cdb46698ef9b565f735e17edad89829 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 7 Apr 2017 16:55:11 +0200 Subject: [PATCH] Update cmocka-1.1.0-workaround-ppc64le-gcc.patch --- cmocka-1.1.0-workaround-ppc64le-gcc.patch | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmocka-1.1.0-workaround-ppc64le-gcc.patch b/cmocka-1.1.0-workaround-ppc64le-gcc.patch index 36327f1..190ab24 100644 --- a/cmocka-1.1.0-workaround-ppc64le-gcc.patch +++ b/cmocka-1.1.0-workaround-ppc64le-gcc.patch @@ -1,6 +1,7 @@ -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 +Index: cmocka-1.1.1/cmake/Modules/DefineCompilerFlags.cmake +=================================================================== +--- cmocka-1.1.1.orig/cmake/Modules/DefineCompilerFlags.cmake ++++ cmocka-1.1.1/cmake/Modules/DefineCompilerFlags.cmake @@ -10,7 +10,7 @@ if (UNIX AND NOT WIN32) if (${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)") @@ -9,4 +10,4 @@ diff -up cmocka-1.1.0/cmake/Modules/DefineCompilerFlags.cmake.than cmocka-1.1.0/ + 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") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-format-attribute -Wundef -Wstrict-prototypes")