diff options
author | Tristan Partin <tristan@partin.io> | 2024-05-07 14:51:40 -0500 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2024-05-07 15:33:32 -0700 |
commit | 8cb16b2d6a97514bf17aa8ca2f6bf098cfc5bcbf (patch) | |
tree | eafe5a76fe3908c389ce27d4650af49ff794e795 /mesonbuild | |
parent | 23eb7ba700cd6c53d5491cc4f99c532629efa1e2 (diff) | |
download | meson-8cb16b2d6a97514bf17aa8ca2f6bf098cfc5bcbf.zip meson-8cb16b2d6a97514bf17aa8ca2f6bf098cfc5bcbf.tar.gz meson-8cb16b2d6a97514bf17aa8ca2f6bf098cfc5bcbf.tar.bz2 |
Add support for GCC's null_terminated_string_arg function attribute
This is new as of 14.1.
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/compilers/c_function_attributes.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/compilers/c_function_attributes.py b/mesonbuild/compilers/c_function_attributes.py index eec872b..a7258a1 100644 --- a/mesonbuild/compilers/c_function_attributes.py +++ b/mesonbuild/compilers/c_function_attributes.py @@ -80,6 +80,8 @@ C_FUNC_ATTRIBUTES = { 'int foo(void) __attribute__((noreturn));', 'nothrow': 'int foo(void) __attribute__((nothrow));', + 'null_terminated_string_arg': + 'int foo(const char * p) __attribute__((null_terminated_string_arg(1)));', 'optimize': '__attribute__((optimize(3))) int foo(void) { return 0; }', 'packed': |