From: Martin Jambor Date: Fri, 4 Jul 2025 15:50:42 +0000 (+0200) Subject: Fortran: Silence a clang warning (suggesting a brace) in io.cc X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0b7c27325c7e96a48ffadd506c00d02b7d77be5d;p=thirdparty%2Fgcc.git 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 * io.cc (format_asterisk): Add a brace around static initialization location part of the field locus. --- diff --git a/gcc/fortran/io.cc b/gcc/fortran/io.cc index 7466d8fe094..4d28c2c90ba 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 {