Skip to content

Commit

Permalink
Remove extra semi colon from internal_repo_rocksdb/repo/monitoring/pe…
Browse files Browse the repository at this point in the history
…rf_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
  • Loading branch information
r-barnes authored and facebook-github-bot committed Dec 2, 2023
1 parent 06dc32e commit dce3ca5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion monitoring/perf_context_imp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit dce3ca5

Please sign in to comment.