From: Cyril Hrubis <chrubis@suse.cz>
To: Zhao Gongyi <zhaogongyi@huawei.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] config.mk.in: build.sh: Add -Wno-missing-field-initializers to CFLAGS
Date: Thu, 8 Dec 2022 14:24:01 +0100 [thread overview]
Message-ID: <Y5Hlcc86GF56GY6f@yuki> (raw)
In-Reply-To: <20221208130348.65693-1-zhaogongyi@huawei.com>
Hi!
> Add CFLAGS -Wno-missing-field-initializers to suppress the
> compilation warnings like:
>
> autogroup01.c:87:1: warning: missing initializer for field ‘needs_cmds’ of ‘struct tst_test’ [-Wmissing-field-initializers]
> };
> ^
> In file included from autogroup01.c:21:0:
> ../../../../include/tst_test.h:324:21: note: ‘needs_cmds’ declared here
> const char *const *needs_cmds;
This is actually caused by a gcc bug that has been already fixed see:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84685
And I do not think that it's a good idea to work around gcc warnings in
our build system.
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2022-12-08 13:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-08 13:03 [LTP] [PATCH] config.mk.in: build.sh: Add -Wno-missing-field-initializers to CFLAGS Zhao Gongyi via ltp
2022-12-08 13:24 ` Cyril Hrubis [this message]
2022-12-08 14:55 ` Petr Vorel
-- strict thread matches above, loose matches on Subject: below --
2022-12-09 1:08 zhaogongyi via ltp
2022-12-09 9:50 ` Petr Vorel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y5Hlcc86GF56GY6f@yuki \
--to=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
--cc=zhaogongyi@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.