diff --git a/src/CppUTest/SimpleString.cpp b/src/CppUTest/SimpleString.cpp index c5d6a4ba4..b8c924b7c 100644 --- a/src/CppUTest/SimpleString.cpp +++ b/src/CppUTest/SimpleString.cpp @@ -562,8 +562,9 @@ SimpleString BracketsFormattedHexString(SimpleString hexString) * Specifically nullptr_t is not officially supported */ #if __cplusplus > 199711L && !defined __arm__ -SimpleString StringFrom(const nullptr_t __attribute__((unused)) value) +SimpleString StringFrom(const nullptr_t value) { + (void) value; return "(null)"; } #endif