postgres.git / summary / log / commit / refs

commit    c01fd93088da36f2473a6b1bad3fce3e04c685a1
Author:   Tom Lane <tgl@sss.pgh.pa.us>
Date:     Tue Oct 08 15:15:16 2024 +0000
First released in: 18.0

    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 */ [parent: 05d1b9b5c286]