From: Petr Vorel <pvorel@suse.cz>
To: Cyril Hrubis <chrubis@suse.cz>
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 15:55:26 +0100 [thread overview]
Message-ID: <Y5H63jzkq/P1hNf9@pevik> (raw)
In-Reply-To: <Y5Hlcc86GF56GY6f@yuki>
> 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.
I would not workaround it either.
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2022-12-08 14:55 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
2022-12-08 14:55 ` Petr Vorel [this message]
-- 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=Y5H63jzkq/P1hNf9@pevik \
--to=pvorel@suse.cz \
--cc=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox