mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
enable -Werror=unused-result
Inspired by
010ff57ebb
From the original PR:
> We do not have any of these warnings appearing at the moment, but
> it seems like a good idea to enable [[nodiscard]] checking anyway.
> Once we start introducing more functions with must-use conditions we will
> need such checking, and the rust stdlib has proven them very useful.
This commit is contained in:
parent
80d67d603b
commit
101915c9b7
8 changed files with 11 additions and 2 deletions
|
@ -23,11 +23,14 @@ nix_perl_conf.set('PACKAGE_VERSION', meson.project_version())
|
|||
# set error arguments
|
||||
#-------------------------------------------------
|
||||
error_args = [
|
||||
'-Werror=unused-result',
|
||||
'-Wdeprecated-copy',
|
||||
'-Wdeprecated-declarations',
|
||||
'-Wignored-qualifiers',
|
||||
'-Wno-pedantic',
|
||||
'-Wno-non-virtual-dtor',
|
||||
'-Wno-unused-parameter',
|
||||
'-Wno-variadic-macros',
|
||||
'-Wdeprecated-declarations',
|
||||
'-Wno-missing-field-initializers',
|
||||
'-Wno-unknown-warning-option',
|
||||
'-Wno-unused-variable',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue