aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
authorTristan Partin <tristan@partin.io>2022-05-19 13:33:43 -0500
committerEli Schwartz <eschwartz93@gmail.com>2022-05-19 15:05:53 -0400
commit8d918e01475cfa616e610c5721b5e9198d03f883 (patch)
tree46b22c9a685c9f7b094f1ebbb3bad2edcb04e2a3 /mesonbuild/compilers
parent5d438b6aedbb074c06f6f9fa2f7972b422ccd1bd (diff)
downloadmeson-8d918e01475cfa616e610c5721b5e9198d03f883.zip
meson-8d918e01475cfa616e610c5721b5e9198d03f883.tar.gz
meson-8d918e01475cfa616e610c5721b5e9198d03f883.tar.bz2
Add cc.has_function_attribute('sentinel')
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r--mesonbuild/compilers/c_function_attributes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/compilers/c_function_attributes.py b/mesonbuild/compilers/c_function_attributes.py
index faa6570..f663bfc 100644
--- a/mesonbuild/compilers/c_function_attributes.py
+++ b/mesonbuild/compilers/c_function_attributes.py
@@ -94,6 +94,8 @@ C_FUNC_ATTRIBUTES = {
#else
extern int foo __attribute__((section(".bar")));
#endif''',
+ 'sentinel':
+ 'int foo(const char *bar, ...) __attribute__((sentinel));',
'unused':
'int foo(void) __attribute__((unused));',
'used':