summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2021-11-11 19:19:52 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-12-28 21:25:36 +0000
commita3cf11e587597355177c50acc0af8631a6304463 (patch)
tree036eb61e84792f7776e809eeb8ab2583687b115e
parent3ad92738e252c20f3dc6d3b926d4e5425d8ab954 (diff)
downloadmongo-a3cf11e587597355177c50acc0af8631a6304463.tar.gz
SERVER-59365 fix {A,UB}SAN link error
-rw-r--r--src/mongo/db/process_health/state_machine_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/process_health/state_machine_test.cpp b/src/mongo/db/process_health/state_machine_test.cpp
index 42283a226a0..1ddde55578e 100644
--- a/src/mongo/db/process_health/state_machine_test.cpp
+++ b/src/mongo/db/process_health/state_machine_test.cpp
@@ -38,7 +38,7 @@ namespace process_health {
class StateMachineTestFixture : public unittest::Test {
public:
enum class MachineState { A, B, C, NoHandlerDefined };
- static const MachineState kInitialState = MachineState::A;
+ static constexpr MachineState kInitialState = MachineState::A;
struct Message {
boost::optional<MachineState> nextState;
};