summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/if/no-return.yml
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2024-03-23 10:50:33 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2024-03-23 10:51:33 +0100
commit3f8b04d6a759cf6d8f5705b688208075fcbd6138 (patch)
tree16fcb2ba7f6b444550010587ee0ad390827163c7 /spec/rtems/basedefs/if/no-return.yml
parentspec: Fix CONFIGURE_TICKS_PER_TIMESLICE constraint (diff)
downloadrtems-central-3f8b04d6a759cf6d8f5705b688208075fcbd6138.tar.bz2
spec: Avoid -Wundef warnings in API header
Diffstat (limited to 'spec/rtems/basedefs/if/no-return.yml')
-rw-r--r--spec/rtems/basedefs/if/no-return.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/rtems/basedefs/if/no-return.yml b/spec/rtems/basedefs/if/no-return.yml
index 70413c1e..a9953ee7 100644
--- a/spec/rtems/basedefs/if/no-return.yml
+++ b/spec/rtems/basedefs/if/no-return.yml
@@ -10,11 +10,15 @@ definition:
- definition: |
[[noreturn]]
enabled-by:
- - ${/compiler/if/cplusplus:/name} >= 201103L
+ and:
+ - defined( ${/compiler/if/cplusplus:/name} )
+ - ${/compiler/if/cplusplus:/name} >= 201103L
- definition: |
_Noreturn
enabled-by:
- - ${/compiler/if/stdc-version:/name} >= 201112L
+ and:
+ - defined( ${/compiler/if/stdc-version:/name} )
+ - ${/compiler/if/stdc-version:/name} >= 201112L
- definition: |
__attribute__(( __noreturn__ ))
enabled-by: