Silence buildfarm warning chatter from bd1276a3c.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 8 Oct 2024 15:15:16 +0000 (11:15 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 8 Oct 2024 15:15:16 +0000 (11:15 -0400)
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

index b4efb127dc8532defa26c309bfa716a4c4fa9f99..a9f4d205e142c5e5c256e5df6b410b090e0cf778 100644 (file)
@@ -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 */