https://gcc.gnu.org/g:44e33b2d621d6d5e5fd635ad2595bbf99cd80521

commit r17-2056-g44e33b2d621d6d5e5fd635ad2595bbf99cd80521
Author: Jakub Jelinek <[email protected]>
Date:   Wed Jul 1 12:41:10 2026 +0200

    fortran: Remove spurious semicolon
    
    When building with GCC 8, I see
    ../../gcc/fortran/check.cc:2505:2: warning: extra ‘;’ [-Wpedantic]
    The following patch fixes that.
    
    2026-07-01  Jakub Jelinek  <[email protected]>
    
            * check.cc (get_ul_from_cst_cl): Remove spurious semicolon.

Diff:
---
 gcc/fortran/check.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/fortran/check.cc b/gcc/fortran/check.cc
index b2511cf62952..58bcf07fffd6 100644
--- a/gcc/fortran/check.cc
+++ b/gcc/fortran/check.cc
@@ -2502,7 +2502,7 @@ get_ul_from_cst_cl (const gfc_charlen *cl)
 {
   return cl && cl->length && cl->length->expr_type == EXPR_CONSTANT
         ? mpz_get_ui (cl->length->value.integer) : 0;
-};
+}
 
 
 /* Checks shared between co_reduce and reduce.  */

Reply via email to