git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 3c55410) | patch
Emit dummy statements for probes.d probes when disabled
2021年5月10日 09:36:26 +0000 (11:36 +0200)
2021年5月10日 09:40:03 +0000 (11:40 +0200)
commit fa8fbadb934b4727a7aeff074995e799f4685a75
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
src/backend/utils/Gen_dummy_probes.pl diff | blob | blame | history
src/backend/utils/Gen_dummy_probes.sed diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /