[ncp/cli/posix-app] disable coverage test when macro not defined (#4458)

This change help suppress the undefined macro warnings.
This commit is contained in:
Abtin Keshavarzian
2020-01-09 11:45:39 -08:00
committed by Jonathan Hui
parent da6c00bd29
commit cf809bd16a
3 changed files with 12 additions and 0 deletions
+4
View File
@@ -46,6 +46,10 @@ jmp_buf gResetJump;
void __gcov_flush();
#endif
#ifndef OPENTHREAD_ENABLE_COVERAGE
#define OPENTHREAD_ENABLE_COVERAGE 0
#endif
#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE
void *otPlatCAlloc(size_t aNum, size_t aSize)
{
+4
View File
@@ -45,6 +45,10 @@ jmp_buf gResetJump;
void __gcov_flush();
#endif
#ifndef OPENTHREAD_ENABLE_COVERAGE
#define OPENTHREAD_ENABLE_COVERAGE 0
#endif
#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE
void *otPlatCAlloc(size_t aNum, size_t aSize)
{
+4
View File
@@ -62,6 +62,10 @@
#endif
#include <openthread-system.h>
#ifndef OPENTHREAD_ENABLE_COVERAGE
#define OPENTHREAD_ENABLE_COVERAGE 0
#endif
typedef struct PosixConfig
{
otPlatformConfig mPlatformConfig; ///< Platform configuration.