Skip to content

Commit 830f77f

Browse files
authored
Merge pull request #509 from alecoding/issue_507
Fix warning for issue #507
2 parents 038dd81 + 8bbfe1f commit 830f77f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/unity_internals.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,14 @@ void UnityAssertNumbersArrayWithin(const UNITY_UINT delta,
617617
const UNITY_DISPLAY_STYLE_T style,
618618
const UNITY_FLAGS_T flags);
619619

620+
#ifndef UNITY_EXCLUDE_SETJMP_H
620621
void UnityFail(const char* message, const UNITY_LINE_TYPE line) UNITY_FUNCTION_ATTR(noreturn);
621622
void UnityIgnore(const char* message, const UNITY_LINE_TYPE line) UNITY_FUNCTION_ATTR(noreturn);
623+
#else
624+
void UnityFail(const char* message, const UNITY_LINE_TYPE line);
625+
void UnityIgnore(const char* message, const UNITY_LINE_TYPE line);
626+
#endif
627+
622628
void UnityMessage(const char* message, const UNITY_LINE_TYPE line);
623629

624630
#ifndef UNITY_EXCLUDE_FLOAT

0 commit comments

Comments
 (0)