prof_log: cassert(config_prof) in public functions

This lets the compiler infer that the code is dead in builds where profiling is
enabled, saving on space there.
This commit is contained in:
David Goldblatt
2020-12-17 11:18:21 -08:00
committed by David Goldblatt
parent 526180b76d
commit 83cad746ae
2 changed files with 14 additions and 1 deletions

View File

@@ -141,7 +141,9 @@ TEST_END
int
main(void) {
prof_log_dummy_set(true);
if (config_prof) {
prof_log_dummy_set(true);
}
return test_no_reentrancy(
test_prof_log_many_logs,
test_prof_log_many_traces,