From f82c90afb6665ffe9de5b2fe726290a729038017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sat, 9 Jan 2016 17:34:32 +0000 Subject: [PATCH] Coverity Scan doesn't like the no-op default case, so hide it when we're not instrumenting for coverage analysis. git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@878 185d5e19-27fe-0310-9dcf-9bff6b9f3609 --- lib/liboath/oath_impl.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/liboath/oath_impl.h b/lib/liboath/oath_impl.h index 02ccfd9..4c9fda9 100644 --- a/lib/liboath/oath_impl.h +++ b/lib/liboath/oath_impl.h @@ -43,10 +43,14 @@ /* * Use at end of switch which has no default case */ -#define COVERAGE_NO_DEFAULT_CASE \ +#if _BullseyeCoverage +#define COVERAGE_NO_DEFAULT_CASE \ COVERAGE_DISABLE \ default: \ (void)0; \ COVERAGE_RESTORE #endif +#else +#define COVERAGE_NO_DEFAULT_CASE +#endif