Skip to content

Commit 4fbde8d

Browse files
author
Enrico Steffinlongo
committed
Added UNREACHABLE after false INVARIANT to address GCC 12 warnings
1 parent da127a5 commit 4fbde8d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/solvers/smt2/smt2_conv.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@ constant_exprt smt2_convt::parse_literal(
520520
false,
521521
"smt2_convt::parse_literal should not be of unsupported type " +
522522
type.id_string());
523+
UNREACHABLE;
523524
}
524525

525526
exprt smt2_convt::parse_array(

src/solvers/strings/string_format_builtin_function.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ add_axioms_for_format_specifier(
233233
}
234234

235235
INVARIANT(false, "format specifier must belong to [bBhHsScCdoxXeEfgGaAtT%n]");
236+
UNREACHABLE;
236237
}
237238

238239
/// Deserialize an argument for format from \p string.

0 commit comments

Comments
 (0)