Skip to content

Commit 9fe6f05

Browse files
committed
build: Drop meson version test for 0.48
With db8024d ("build: require meson 0.50.0+") we don't need to test the meson version for the fall through compiler feature. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 6be5fc6 commit 9fe6f05

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

meson.build

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -180,24 +180,7 @@ conf.set10(
180180
description: 'Is linux/mctp.h include-able?'
181181
)
182182

183-
if meson.version().version_compare('>= 0.48')
184-
has_fallthrough = cc.has_function_attribute('fallthrough')
185-
else
186-
has_fallthrough = cc.compiles(
187-
'''int main(int argc, char **argv) {
188-
switch(argc) {
189-
case 0:
190-
__attribute__((__fallthrough__));
191-
case 1:
192-
return 1;
193-
}
194-
return 0;
195-
}
196-
''',
197-
name: 'has fallthrough')
198-
endif
199-
200-
if has_fallthrough
183+
if cc.has_function_attribute('fallthrough')
201184
conf.set('fallthrough', '__attribute__((__fallthrough__))')
202185
else
203186
conf.set('fallthrough', 'do {} while (0) /* fallthrough */')

0 commit comments

Comments
 (0)