diff --git a/features/frameworks/greentea-client/source/greentea_test_env.cpp b/features/frameworks/greentea-client/source/greentea_test_env.cpp index 1b59eca20b5..89ee51c39c8 100644 --- a/features/frameworks/greentea-client/source/greentea_test_env.cpp +++ b/features/frameworks/greentea-client/source/greentea_test_env.cpp @@ -94,8 +94,10 @@ void _GREENTEA_SETUP_COMMON(const int timeout, const char *host_test_name, char * This function is blocking. */ extern "C" void GREENTEA_SETUP(const int timeout, const char *host_test_name) { +#if ! defined(NO_GREENTEA) char _value[GREENTEA_UUID_LENGTH] = {0}; _GREENTEA_SETUP_COMMON(timeout, host_test_name, _value, GREENTEA_UUID_LENGTH); +#endif } /** \brief Handshake with host and send setup data (timeout and host test name). Allows you to preserve sync UUID.