From 0b7c27325c7e96a48ffadd506c00d02b7d77be5d Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Fri, 4 Jul 2025 17:50:42 +0200 Subject: [PATCH] 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. --- 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 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 { -- 2.47.2