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
This commit is contained in:
Dag-Erling Smørgrav 2016-01-09 17:34:32 +00:00
parent 4e92aa7e24
commit f82c90afb6
1 changed files with 5 additions and 1 deletions

View File

@ -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