• Daniel Black's avatar
    mysql_client_test: test_bug40365 gcc-11.2.1 indentation complaint · 3b29315f
    Daniel Black authored
    Observed in 10.4 however same code in 10.2
    
    mariadb-server-10.4/tests/mysql_client_test.c:18209:5: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
    18209 |     if (!opt_silent)
          |     ^~
    In file included from mariadb-server-10.4/tests/mysql_client_test.c:38:
    mariadb-server-10.4/tests/mysql_client_fw.c:133:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
      133 |         ((void) ((expr) ? 0 : (die(__FILE__, __LINE__, #expr), 0)))
          |         ^
    mariadb-server-10.4/tests/mysql_client_test.c:18212:7: note: in expansion of macro ‘DIE_UNLESS’
    18212 |       DIE_UNLESS(tm[i].year == 0);
          |       ^~~~~~~~~~
    
    $ /usr/bin/cc --version
    cc (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1)
    3b29315f
mysql_client_test.c 543 KB