aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2022-10-01 12:21:36 -0400
committerPatrick Palka <ppalka@redhat.com>2022-10-01 12:21:36 -0400
commitc051060ade8a4392bbd4604a551a8dcb8c937f45 (patch)
treeb940822e9556940ad865cbd828bc6ee07c127570 /libgcc
parentca01d2526917ec6e54b30472d3aedfd46d4ca585 (diff)
downloadgcc-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