Skip to content

Commit 9cc93fe

Browse files
committed
Handle all enum values in switch/case
1 parent 39f20de commit 9cc93fe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/util/byte_operators.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ irep_idt byte_extract_id()
2323
case configt::ansi_ct::endiannesst::IS_BIG_ENDIAN:
2424
return ID_byte_extract_big_endian;
2525

26-
default:
26+
case configt::ansi_ct::endiannesst::NO_ENDIANNESS:
2727
UNREACHABLE;
2828
}
2929
}
@@ -38,7 +38,7 @@ irep_idt byte_update_id()
3838
case configt::ansi_ct::endiannesst::IS_BIG_ENDIAN:
3939
return ID_byte_update_big_endian;
4040

41-
default:
41+
case configt::ansi_ct::endiannesst::NO_ENDIANNESS:
4242
UNREACHABLE;
4343
}
4444
}

src/util/config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ std::string configt::ansi_ct::os_to_string(ost os)
10491049
case ost::OS_LINUX: return "linux";
10501050
case ost::OS_MACOS: return "macos";
10511051
case ost::OS_WIN: return "win";
1052-
default: return "none";
1052+
case ost::NO_OS: return "none";
10531053
}
10541054
}
10551055

0 commit comments

Comments
 (0)