mirror of
https://github.com/espressif/openthread.git
synced 2026-08-08 19:57:46 +00:00
[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:
committed by
Jonathan Hui
parent
da6c00bd29
commit
cf809bd16a
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user