]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
fix Clang warning
authorMartin Liska <mliska@suse.cz>
Wed, 30 Nov 2022 13:47:03 +0000 (14:47 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 30 Nov 2022 13:47:49 +0000 (14:47 +0100)
Fixes:
gcc/fortran/parse.cc:5782:32: warning: for loop has empty body [-Wempty-body]

gcc/fortran/ChangeLog:

* parse.cc (parse_omp_structured_block): Remove extra semicolon.

gcc/fortran/parse.cc

index 51ff0fc6ace5ed3d5ae20e5a69172b210456535a..cdae43fa1fda2e3acd61770db0bfda62e50f6516 100644 (file)
@@ -5779,7 +5779,7 @@ parse_omp_structured_block (gfc_statement omp_st, bool workshare_stmts_only)
        {
          gfc_omp_namelist *nl;
          for (nl = cp->ext.omp_clauses->lists[OMP_LIST_COPYPRIVATE];
-             nl->next; nl = nl->next);
+             nl->next; nl = nl->next)
            ;
          nl->next = new_st.ext.omp_clauses->lists[OMP_LIST_COPYPRIVATE];
        }