You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The NTP reference implementation uses Unity for unit testing. On FreeBSD (at least 11.2 and later) stdnoreturn.h has: #define noreturn _Noreturn
That works fine for function declaration/definition, but it breaks __attribute__((noreturn)) as used by unity_internals.h. Changing that file to use __attribute__((__noreturn__)) resolves the problem.
Example warning from clang 6.0.0 (which is cc on FreeBSD 11.2):
The NTP reference implementation uses Unity for unit testing. On FreeBSD (at least 11.2 and later) stdnoreturn.h has:
#define noreturn _Noreturn
That works fine for function declaration/definition, but it breaks
__attribute__((noreturn))
as used by unity_internals.h. Changing that file to use__attribute__((__noreturn__))
resolves the problem.Example warning from clang 6.0.0 (which is cc on FreeBSD 11.2):
That's using an older version of Unity but I see the same issue in the current source.
The text was updated successfully, but these errors were encountered: