diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-04-18 06:36:47 +0530 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-04-20 19:30:57 +0300 |
commit | dc19b132024f818bfbd3e140e8141cbcabb3d720 (patch) | |
tree | 7e556f7c41128669a32e0bc49215c37863469d77 /mesonbuild/compilers/c_function_attributes.py | |
parent | b61e037e930d0d3a8569ca764d455f31f135c237 (diff) | |
download | meson-dc19b132024f818bfbd3e140e8141cbcabb3d720.tar.gz |
compilers: Silence warning about gnu_inline with clang
The warning is due to a change in behaviour in Clang 10 and newer:
https://releases.llvm.org/10.0.0/tools/clang/docs/ReleaseNotes.html#c-language-changes-in-clang
This was already fixed for clang++, but not for clang for some reason.
It was also fixed incorrectly; by adding `extern` instead of moving
from `-Werror` to `-Werror=attributes`.
Diffstat (limited to 'mesonbuild/compilers/c_function_attributes.py')
-rw-r--r-- | mesonbuild/compilers/c_function_attributes.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mesonbuild/compilers/c_function_attributes.py b/mesonbuild/compilers/c_function_attributes.py index 3b9fdf9c0..e5de4853e 100644 --- a/mesonbuild/compilers/c_function_attributes.py +++ b/mesonbuild/compilers/c_function_attributes.py @@ -127,7 +127,4 @@ CXX_FUNC_ATTRIBUTES = { 'static int (*resolve_foo(void))(void) { return my_foo; }' '}' 'int foo(void) __attribute__((ifunc("resolve_foo")));'), - # Clang >= 10 requires the 'extern' keyword - 'gnu_inline': - 'extern inline __attribute__((gnu_inline)) int foo(void) { return 0; }', } |