From d58777351bd7145546080c2af0e44bae06030004 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Mon, 28 Mar 2022 12:36:52 -0700 Subject: [PATCH] Enforce comment with static assert (#6699) --- fdbclient/WellKnownEndpoints.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fdbclient/WellKnownEndpoints.h b/fdbclient/WellKnownEndpoints.h index 5db3f34cea..bed5c34935 100644 --- a/fdbclient/WellKnownEndpoints.h +++ b/fdbclient/WellKnownEndpoints.h @@ -52,4 +52,7 @@ enum WellKnownEndpoints { WLTOKEN_RESERVED_COUNT // 23 }; +static_assert(WLTOKEN_PROTOCOL_INFO == + 10); // Enforce that the value of this endpoint does not change per comment above. + #endif