Emit dummy statements for probes.d probes when disabled
Peter Eisentraut <peter@eisentraut.org>
Emit dummy statements for probes.d probes when disabled
When building without --enable-dtrace, emit dummy
do {} while (0)
statements for the stubbed-out TRACE_POSTGRESQL_foo() macros
instead of empty macros that totally elide the original probe
statement.
This fixes the
warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
introduced by b94409a02f.
Author: Craig Ringer <craig.ringer@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/20210504221531.cfvpmmdfsou6eitb%40alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/Gen_dummy_probes.pl | modified | +6 −0 |
| src/backend/utils/Gen_dummy_probes.sed | modified | +1 −0 |
Discussion
- [PATCH] Identify LWLocks in tracepoints 52 messages · 2020-12-19 → 2021-05-11