forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfa8fbad
committed
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() macrosinstead of empty macros that totally elide the original probestatement.This fixes the warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]introduced byb94409a.Author: Craig Ringer <craig.ringer@2ndquadrant.com>Discussion:https://www.postgresql.org/message-id/flat/20210504221531.cfvpmmdfsou6eitb%40alap3.anarazel.de1 parent3c55410 commitfa8fbad
2 files changed
+7
-0
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
138 | 144 |
| |
139 | 145 |
| |
140 | 146 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| 22 | + | |
22 | 23 |
| |
23 | 24 |
|
0 commit comments
Comments
(0)