From e00d5dd48b2e0d681bb49c5cae3291b39675f40d Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Tue, 15 Mar 2016 16:58:36 +0100 Subject: [PATCH] Experimental: add --exclude-unreachable-branches to gcovr --- Makefile.am | 2 +- src/ctbin/ctbin.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 577644b..32d7b67 100644 --- a/Makefile.am +++ b/Makefile.am @@ -93,7 +93,7 @@ cppncss: # Add coverage rule coverage: @if type gcovr >/dev/null 2>&1; then \ - gcovr -r . -x -o coverage-report-cxx.xml; \ + gcovr -r . -x --exclude-unreachable-branches -o coverage-report-cxx.xml; \ else \ echo "gcovr script not found in PATH."; \ fi; \ diff --git a/src/ctbin/ctbin.cpp b/src/ctbin/ctbin.cpp index 4da9f0e..cf03319 100644 --- a/src/ctbin/ctbin.cpp +++ b/src/ctbin/ctbin.cpp @@ -62,7 +62,7 @@ ctbin::ctbin(void) : ctool(CTBIN_NAME, CTBIN_VERSION) // Return return; -} +} // GCOV_EXCL_LINE /***********************************************************************//** -- libgit2 0.21.4