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>
This commit is contained in:
Philip Withnall 2018-05-25 13:38:29 +01:00
parent bbcce75d4e
commit 170cf5a397

View File

@ -328,6 +328,7 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
'-Wall', '-Wall',
'-Wduplicated-branches', '-Wduplicated-branches',
'-Wstrict-prototypes', '-Wstrict-prototypes',
'-Wunused',
'-Werror=declaration-after-statement', '-Werror=declaration-after-statement',
'-Werror=format=2', '-Werror=format=2',
'-Werror=format-security', '-Werror=format-security',