From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Emit dummy statements for probes.d probes when disabled |
Date: | 2021-05-10 11:58:45 |
Message-ID: | E1lg4Yf-0003KL-1P@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(dot)ringer(at)2ndquadrant(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/20210504221531.cfvpmmdfsou6eitb%40alap3.anarazel.de
Branch
------
REL_13_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/0d204a4b09f74f2c2ca0d099d5a44ce422d6978d
Modified Files
--------------
src/backend/utils/Gen_dummy_probes.pl | 6 ++++++
src/backend/utils/Gen_dummy_probes.sed | 1 +
2 files changed, 7 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2021-05-10 12:37:29 | pgsql: Translation updates |
Previous Message | Peter Eisentraut | 2021-05-10 09:41:07 | pgsql: Emit dummy statements for probes.d probes when disabled |