Commit 4f61ea4d authored by Frediano Ziglio's avatar Frediano Ziglio

build: Avoid warning building tests with Meson

Compiling with --werror you get this warning

cc1: error: command line option ‘-fvisibility-inlines-hidden’ is valid for C++/ObjC++ but not for C [-Werror]

Avoid using this flag, it's mainly used for optimisations, not needed
for tests. This allows to use Meson with --werror which is a good
idea specially in the CI.
Signed-off-by: Frediano Ziglio's avatarFrediano Ziglio <>
Acked-by: Kevin Pouget's avatarKevin Pouget <>
parent 40a04698
......@@ -39,7 +39,7 @@ foreach t : tests
link_with : t.get('link_with', []),
dependencies : t.get('dependencies', []),
install : false,
gnu_symbol_visibility : 'inlineshidden')
gnu_symbol_visibility : 'hidden')
if is_test
test(test_name, exe)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment