Skip to content
Snippets Groups Projects
Commit 48b98bb9 authored by Nick Zavaritsky's avatar Nick Zavaritsky
Browse files

clang7 build issue, _Noreturn keyword

_Noreturn kw must appear before the function name as per C11 grammar and
clang7 is the first one to enforce that.

Ecb_noreturn macro is defined using _Noreturn keyword if C11 support is
detected; otherwise __noreturn__ gcc attribute is used. The later must
appear after the function parameters list.  These two methods to
annotate a function are inherently incompatible in terms of the token
location relative to the function declaration.

Use gcc attribute exclusively since it is always available.
parent 7142aad6
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment