aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-03-27 14:15:10 +0000
committerGitHub <noreply@github.com>2022-03-27 14:15:10 +0000
commit729bbacbd175350fbff3959d7503ae954d22aeef (patch)
tree147f79fa62619ded8d78ba2b100211be712982f3 /gcc
parent5a15694ee22500458a17f064b42fc7b8051984db (diff)
parent1f8780be706f557d840e6c8e8b9188444f11df82 (diff)
downloadgcc-729bbacbd175350fbff3959d7503ae954d22aeef.zip
gcc-729bbacbd175350fbff3959d7503ae954d22aeef.tar.gz
gcc-729bbacbd175350fbff3959d7503ae954d22aeef.tar.bz2
Merge #1066
1066: Fix warning of uninitialized delim_id variable r=CohenArthur a=CohenArthur Co-authored-by: CohenArthur <arthur.cohen@epita.fr>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/parse/rust-parse.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/rust/parse/rust-parse.cc b/gcc/rust/parse/rust-parse.cc
index b77100a..f1e2caa 100644
--- a/gcc/rust/parse/rust-parse.cc
+++ b/gcc/rust/parse/rust-parse.cc
@@ -241,6 +241,9 @@ peculiar_fragment_match_compatible (const AST::MacroMatchFragment &last_match,
case AST::CURLY:
delim_id = LEFT_CURLY;
break;
+ default:
+ gcc_unreachable ();
+ break;
}
if (contains (allowed_toks, delim_id))
return true;