diff options
author | Benety Goh <benety@mongodb.com> | 2021-11-11 19:19:52 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-11-12 01:36:50 +0000 |
commit | de455570170e4e1c568a6c91bff8d317af141e41 (patch) | |
tree | 68ac73cbd32db86e11c1398f8d4a2a8eeca3d6c3 | |
parent | c5aa4a5f2035733b85ee55edcf7b74b530db29e7 (diff) | |
download | mongo-de455570170e4e1c568a6c91bff8d317af141e41.tar.gz |
SERVER-59365 fix {A,UB}SAN link error
-rw-r--r-- | src/mongo/db/process_health/state_machine_test.cpp | 2 |
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; }; |