From dce3ca5ab8e3ac93c9e2071e0be8392a52fbab23 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Fri, 1 Dec 2023 22:35:34 -0800 Subject: [PATCH] Remove extra semi colon from internal_repo_rocksdb/repo/monitoring/perf_context_imp.h Summary: `-Wextra-semi` or `-Wextra-semi-stmt` If the code compiles, this is safe to land. Reviewed By: dmm-fb Differential Revision: D51778007 fbshipit-source-id: 5d1b20a3acc4bcc7cd7c204f2f73a14fc8f81883 --- monitoring/perf_context_imp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monitoring/perf_context_imp.h b/monitoring/perf_context_imp.h index 5b66ff2ff9..a63d931a77 100644 --- a/monitoring/perf_context_imp.h +++ b/monitoring/perf_context_imp.h @@ -74,7 +74,8 @@ extern thread_local PerfContext perf_context; #define PERF_COUNTER_ADD(metric, value) \ if (perf_level >= PerfLevel::kEnableCount) { \ perf_context.metric += value; \ - } + } \ + static_assert(true, "semicolon required") // Increase metric value #define PERF_COUNTER_BY_LEVEL_ADD(metric, value, level) \