diff options
author | Patrick Palka <ppalka@redhat.com> | 2022-10-01 12:21:36 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2022-10-01 12:21:36 -0400 |
commit | c051060ade8a4392bbd4604a551a8dcb8c937f45 (patch) | |
tree | b940822e9556940ad865cbd828bc6ee07c127570 /libgcc | |
parent | ca01d2526917ec6e54b30472d3aedfd46d4ca585 (diff) | |
download | gcc-c051060ade8a4392bbd4604a551a8dcb8c937f45.zip gcc-c051060ade8a4392bbd4604a551a8dcb8c937f45.tar.gz gcc-c051060ade8a4392bbd4604a551a8dcb8c937f45.tar.bz2 |
c++: make some cp_trait_kind switch statements exhaustive
This replaces the unreachable default case in some cp_trait_kind
switches with an exhaustive listing of the trait codes that we don't
expect to see, so that when adding a new trait we'll get a helpful
-Wswitch warning if we forget to handle the new trait in a relevant
switch.
gcc/cp/ChangeLog:
* semantics.cc (trait_expr_value): Make cp_trait_kind switch
statement exhaustive.
(finish_trait_expr): Likewise.
(finish_trait_type): Likewise.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions