Skip to content

Commit ac6b12a

Browse files
authored
[src] use const& for catch; avoid compiler warnings for gcc>8 (#3909)
1 parent 7a17e95 commit ac6b12a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fstbin/fstdeterminizestar.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ int main(int argc, char *argv[]) {
129129
// of scope anyway.
130130
}
131131
fst_writer.Write(key, fst);
132-
} catch (const std::runtime_error e) {
132+
} catch (const std::runtime_error &e) {
133133
KALDI_WARN << "Error during determinization for key " << key;
134134
}
135135
}

0 commit comments

Comments
 (0)