https://gcc.gnu.org/g:0b7c27325c7e96a48ffadd506c00d02b7d77be5d

commit r16-2027-g0b7c27325c7e96a48ffadd506c00d02b7d77be5d
Author: Martin Jambor <mjam...@suse.cz>
Date:   Fri Jul 4 17:50:42 2025 +0200

    Fortran: Silence a clang warning (suggesting a brace) in io.cc
    
    When GCC is built with clang, it suggests that we add a brace to the
    initialization of format_asterisk:
    
      gcc/fortran/io.cc:32:16: warning: suggest braces around initialization of 
subobject [-Wmissing-braces]
    
    So this patch does that to silence it.
    
    gcc/fortran/ChangeLog:
    
    2025-06-24  Martin Jambor  <mjam...@suse.cz>
    
            * io.cc (format_asterisk): Add a brace around static initialization
            location part of the field locus.

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

diff --git a/gcc/fortran/io.cc b/gcc/fortran/io.cc
index 7466d8fe0945..4d28c2c90ba1 100644
--- a/gcc/fortran/io.cc
+++ b/gcc/fortran/io.cc
@@ -29,7 +29,7 @@ along with GCC; see the file COPYING3.  If not see
 
 gfc_st_label
 format_asterisk = {0, NULL, NULL, -1, ST_LABEL_FORMAT, ST_LABEL_FORMAT, NULL,
-                  0, {NULL, NULL}, NULL, 0};
+                  0, {NULL, {NULL}}, NULL, 0};
 
 typedef struct
 {

Reply via email to