[glib: 1/2] build: Add -Wunused to the set of standard warnings



commit 170cf5a3979b6b67c70e4098116a344f51660638
Author: Philip Withnall <withnall endlessm com>
Date:   Fri May 25 13:38:29 2018 +0100

    build: Add -Wunused to the set of standard warnings
    
    This may catch problems like #1390 in future.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 meson.build | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/meson.build b/meson.build
index 3194da4ec..0ec6de72d 100644
--- a/meson.build
+++ b/meson.build
@@ -328,6 +328,7 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
     '-Wall',
     '-Wduplicated-branches',
     '-Wstrict-prototypes',
+    '-Wunused',
     '-Werror=declaration-after-statement',
     '-Werror=format=2',
     '-Werror=format-security',


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