[Git][NTPsec/ntpsec][master] Give UnityFail() and Unity*thore tthe norturmn attribute,

Eric S. Raymond gitlab at mg.gitlab.com
Sun Sep 6 12:11:29 UTC 2020



Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
dd84817d by Eric S. Raymond at 2020-09-06T08:12:56-04:00
Give UnityFail() and Unity*thore tthe norturmn attribute,

Suppresses a compiler warning.

- - - - -


1 changed file:

- tests/unity/unity_internals.h


Changes:

=====================================
tests/unity/unity_internals.h
=====================================
@@ -611,8 +611,8 @@ void UnityAssertNumbersArrayWithin(const UNITY_UINT delta,
                                    const UNITY_DISPLAY_STYLE_T style,
                                    const UNITY_FLAGS_T flags);
 
-void UnityFail(const char* message, const UNITY_LINE_TYPE line);
-void UnityIgnore(const char* message, const UNITY_LINE_TYPE line);
+void UnityFail(const char* message, const UNITY_LINE_TYPE line) __attribute__((noreturn));
+void UnityIgnore(const char* message, const UNITY_LINE_TYPE line) __attribute__((noreturn));
 void UnityMessage(const char* message, const UNITY_LINE_TYPE line);
 
 #ifndef UNITY_EXCLUDE_FLOAT



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/dd84817dc47b4386eab5e02f63d372425d477133

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/dd84817dc47b4386eab5e02f63d372425d477133
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20200906/41ab9225/attachment.htm>


More information about the vc mailing list