]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
fortran: Remove spurious semicolon
authorJakub Jelinek <jakub@redhat.com>
Wed, 1 Jul 2026 10:41:10 +0000 (12:41 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 1 Jul 2026 10:41:10 +0000 (12:41 +0200)
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  <jakub@redhat.com>

* check.cc (get_ul_from_cst_cl): Remove spurious semicolon.

gcc/fortran/check.cc

index b2511cf62952ffe49522d9d61aec9104db1289ae..58bcf07fffd6654390e183f996a6502193346e77 100644 (file)
@@ -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.  */