lix/src
Robert Hensing fba7be80eb Enable -Werror=switch-enum
switch statements must now match all enum values or disable the
warning.

Explicit is good. This has helped us find two bugs, after solving
another one by debugging.

From now on, adding to an enum will raise errors where they are
not explicitly handled, which is good for productivity, and helps
us decide the correct behavior in all usages.

Notably still excluded from this though are the cases where the
warning is disabled by local pragmas.

fromTOML.cc did not build despite a top-level pragma, so I've had
to resort to a makefile solution for that.
2023-04-03 18:45:20 +02:00
..
build-remote Move enabled experimental feature to libutil struct 2023-03-20 11:05:22 -04:00
libcmd Add explicit case statements where -Wswitch-enum would report them 2023-04-03 18:17:32 +02:00
libexpr Enable -Werror=switch-enum 2023-04-03 18:45:20 +02:00
libfetchers Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
libmain Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
libstore Allow open switch-enum in 5 places 2023-04-03 18:45:20 +02:00
libutil Enable -Werror=switch-enum 2023-04-03 18:45:20 +02:00
nix Merge pull request #7610 from obsidiansystems/gate-default-settings 2023-04-03 14:02:45 +02:00
nix-build Move enabled experimental feature to libutil struct 2023-03-20 11:05:22 -04:00
nix-channel Factor out the generation of the profile/channel directory 2023-03-23 10:22:42 +01:00
nix-collect-garbage Fix nix-collect-garbage -d with the new profile location 2023-03-07 13:08:04 +01:00
nix-copy-closure Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
nix-env Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
nix-instantiate Revert to copyStore = true for nix-instantiate and nix-env 2022-08-23 14:40:27 +02:00
nix-store Add explicit case statements where -Wswitch-enum would report them 2023-04-03 18:17:32 +02:00
resolve-system-dependencies Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00