From 3f8b04d6a759cf6d8f5705b688208075fcbd6138 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sat, 23 Mar 2024 10:50:33 +0100 Subject: spec: Avoid -Wundef warnings in API header --- spec/rtems/basedefs/if/static-assert.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'spec/rtems/basedefs/if/static-assert.yml') diff --git a/spec/rtems/basedefs/if/static-assert.yml b/spec/rtems/basedefs/if/static-assert.yml index 152cd291..28c27051 100644 --- a/spec/rtems/basedefs/if/static-assert.yml +++ b/spec/rtems/basedefs/if/static-assert.yml @@ -19,7 +19,9 @@ definition: params: [] return: null enabled-by: - - ${/compiler/if/cplusplus:/name} >= 201103L + and: + - defined( ${/compiler/if/cplusplus:/name} ) + - ${/compiler/if/cplusplus:/name} >= 201103L - definition: attributes: null body: | @@ -27,7 +29,9 @@ definition: params: [] return: null enabled-by: - - ${/compiler/if/stdc-version:/name} >= 201112L + and: + - defined( ${/compiler/if/stdc-version:/name} ) + - ${/compiler/if/stdc-version:/name} >= 201112L description: null enabled-by: true index-entries: [] -- cgit v1.2.3