From 935c0cff36f78dcbf25b49c70bb461f61ccde754 Mon Sep 17 00:00:00 2001 From: Michael Weber Date: Mon, 7 May 2018 17:47:46 +0200 Subject: [PATCH 1/3] Remove IPO disabled artefacts. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 19b9da6..c0ec0c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.9) +cmake_minimum_required(VERSION 3.5) set(MT "mtrace-ng") project(${MT} C) @@ -17,7 +17,7 @@ include(CheckFunctionExists) include(CheckIncludeFile) include(CheckIncludeFiles) include(CheckSymbolExists) -include(CheckIPOSupported) +#include(CheckIPOSupported) include(${CMAKE_SOURCE_DIR}/Utilities.cmake) @@ -53,7 +53,7 @@ set(CMAKE_EXE_LINKER_FLAGS_LTO "${CMAKE_LINKER_FLAGS_RELEASE} -flto") add_compile_options(-Wall -Wextra -Werror -Werror -Wno-implicit-fallthrough) -check_ipo_supported(RESULT IPO) +#check_ipo_supported(RESULT IPO) #if (IPO) # set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) #endif() From c97313611e9ce47f3ce4e0eff87cf84ec68ca240 Mon Sep 17 00:00:00 2001 From: Michael Weber Date: Mon, 7 May 2018 17:48:05 +0200 Subject: [PATCH 2/3] update dependencies for ubuntu/xenial --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 2366008..42e1bf1 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: mtrace-ng Section: utils Priority: optional Maintainer: Package Maintainers -Build-Depends: debhelper (>= 8.0.0), autotools-dev, binutils-dev, libreadline6-dev, libselinux1-dev, libtinfo-dev, libelfg0-dev +Build-Depends: debhelper (>= 8.0.0), autotools-dev, binutils-dev, libreadline6-dev, libselinux1-dev, libtinfo-dev, libelf-dev, zlib1g-dev, libncurses5-dev, libiberty-dev Standards-Version: 3.9.4 Vcs-Git: https://github.com/sstefani/mtrace.git From 05427b0efb901918282f5e18c5487908faba720a Mon Sep 17 00:00:00 2001 From: Michael Weber Date: Mon, 7 May 2018 17:49:47 +0200 Subject: [PATCH 3/3] Disable unused return code warning for unreachable code. --- client/client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/client.c b/client/client.c index 58c66b2..5053d40 100644 --- a/client/client.c +++ b/client/client.c @@ -663,7 +663,10 @@ static void signal_exit(int sig) signal(SIGINT, SIG_IGN); signal(SIGTERM, SIG_IGN); + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wunused-result" write(pipefd[1], &signum, 1); + #pragma GCC diagnostic pop } static int scan_process(struct process *process)