-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Hi,
when stdnoreturn.h is included before unity.h a compiler error for a unknown attribute is generated:
In file included from ../../src/unity.h:21,
from ../tests/test_unity_strings.c:7:
../../src/unity_internals.h:621:1: error: '_Noreturn' attribute directive ignored [-Werror=attributes]
621 | void UnityFail(const char* message, const UNITY_LINE_TYPE line) UNITY_FUNCTION_ATTR(noreturn);
| ^~~~
../../src/unity_internals.h:622:1: error: '_Noreturn' attribute directive ignored [-Werror=attributes]
622 | void UnityIgnore(const char* message, const UNITY_LINE_TYPE line) UNITY_FUNCTION_ATTR(noreturn);
| ^~~~
This seems to occur because in stdnoreturn.h noreturn is defined to the keyword _Noreturn.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels