aboutsummaryrefslogtreecommitdiff
path: root/src/nix/optimise-store.md
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-04-03 18:11:42 +0200
committerRobert Hensing <robert@roberthensing.nl>2023-04-03 18:45:20 +0200
commitfba7be80eb0fab54b570623d3991739cf3da0759 (patch)
tree5d1e6a52ebf94fa353d29dfec6a7cf49b8f27d37 /src/nix/optimise-store.md
parent9470ee877dabcf133469467a23649066e2bcce5c (diff)
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.
Diffstat (limited to 'src/nix/optimise-store.md')
0 files changed, 0 insertions, 0 deletions