diff --git a/src/lib/core/CHIPError.h b/src/lib/core/CHIPError.h index 971057bd29d584..c4a7d63fd86157 100644 --- a/src/lib/core/CHIPError.h +++ b/src/lib/core/CHIPError.h @@ -146,9 +146,10 @@ class ChipError * (In C++20 this could be replaced by a consteval constructor.) */ #if CHIP_CONFIG_ERROR_SOURCE -#define CHIP_SDK_ERROR(part, code) (::chip::ChipError(chip::ChipError::SdkErrorConstant<(part), (code)>::value, __FILE__, __LINE__)) +#define CHIP_SDK_ERROR(part, code) \ + (::chip::ChipError(::chip::ChipError::SdkErrorConstant<(part), (code)>::value, __FILE__, __LINE__)) #else // CHIP_CONFIG_ERROR_SOURCE -#define CHIP_SDK_ERROR(part, code) (::chip::ChipError(chip::ChipError::SdkErrorConstant<(part), (code)>::value)) +#define CHIP_SDK_ERROR(part, code) (::chip::ChipError(::chip::ChipError::SdkErrorConstant<(part), (code)>::value)) #endif // CHIP_CONFIG_ERROR_SOURCE /**