[gnome-mud] build: Silence unused parameter warnings



commit 4ea3d34ecc4bfde6207146d1b1c86ea058a0a535
Author: Mart Raudsepp <leio gentoo org>
Date:   Sat Jan 5 00:30:17 2019 +0200

    build: Silence unused parameter warnings
    
    No point in dealing with those, as usually the style is to give the
    parameters proper names still, even if unused, especially with
    how widespread callbacks are with mandatory user_data parameter.

 meson.build | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
---
diff --git a/meson.build b/meson.build
index aeec739..d331d06 100644
--- a/meson.build
+++ b/meson.build
@@ -65,6 +65,20 @@ configure_file(
 )
 top_inc = include_directories('.')
 
+cc = meson.get_compiler('c')
+global_c_args = []
+test_c_args = [
+  '-Wno-unused-parameter',
+]
+
+foreach arg: test_c_args
+  if cc.has_multi_arguments(arg)
+    global_c_args += arg
+  endif
+endforeach
+
+add_project_arguments(global_c_args, language: 'c')
+
 subdir('data')
 subdir('src')
 subdir('po')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]