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-11-12 01:36:50 +0000
commitde455570170e4e1c568a6c91bff8d317af141e41 (patch)
tree68ac73cbd32db86e11c1398f8d4a2a8eeca3d6c3
parentc5aa4a5f2035733b85ee55edcf7b74b530db29e7 (diff)
downloadmongo-de455570170e4e1c568a6c91bff8d317af141e41.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;
};