diff options
author | Robert Hensing <robert@roberthensing.nl> | 2023-04-03 18:11:42 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2023-04-03 18:45:20 +0200 |
commit | fba7be80eb0fab54b570623d3991739cf3da0759 (patch) | |
tree | 5d1e6a52ebf94fa353d29dfec6a7cf49b8f27d37 /tests/gc-concurrent.builder.sh | |
parent | 9470ee877dabcf133469467a23649066e2bcce5c (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 'tests/gc-concurrent.builder.sh')
0 files changed, 0 insertions, 0 deletions