From c01fd93088da36f2473a6b1bad3fce3e04c685a1 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 8 Oct 2024 11:15:16 -0400 Subject: [PATCH] Silence buildfarm warning chatter from bd1276a3c. Buildfarm members using -Wextra complained about "warning: suggest braces around empty body in an 'if' statement". Do it gcc's way, though I see no actual readability benefit in this. --- src/bin/psql/tab-complete.in.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/psql/tab-complete.in.c b/src/bin/psql/tab-complete.in.c index b4efb127dc8..a9f4d205e14 100644 --- a/src/bin/psql/tab-complete.in.c +++ b/src/bin/psql/tab-complete.in.c @@ -2122,7 +2122,9 @@ match_previous_words(int pattern_id, /* Dummy statement, allowing all the match rules to look like "else if" */ if (0) - /* skip */ ; + { + /* skip */ + } /* gen_tabcomplete.pl begins special processing here */ /* BEGIN GEN_TABCOMPLETE */ -- 2.30.2