mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +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
|
@ -34,6 +34,7 @@ add_project_arguments(
|
|||
'-Wimplicit-fallthrough',
|
||||
'-Werror=switch',
|
||||
'-Werror=switch-enum',
|
||||
'-Werror=unused-result',
|
||||
'-Wdeprecated-copy',
|
||||
'-Wignored-qualifiers',
|
||||
# Enable assertions in libstdc++ by default. Harmless on libc++. Benchmarked
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue