From: "Rustad, Mark D" <mark.d.rustad@intel.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: "Kirsher, Jeffrey T" <jeffrey.t.kirsher@intel.com>,
"JBottomley@parallels.com" <JBottomley@parallels.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] scsi: Resolve some missing-field-initializers warnings
Date: Fri, 17 Oct 2014 22:44:36 +0000 [thread overview]
Message-ID: <C69957AC-DB35-467C-85B1-091B740C74C9@intel.com> (raw)
In-Reply-To: <20141017132611.GM16538@infradead.org>
The warning appears in W=2 builds. I had another way to silence it by using diagnostic control macros, but those macros were not accepted. Using a single designated initialization also silences it.
Sent from my iPhone
> On Oct 17, 2014, at 8:26 AM, "Christoph Hellwig" <hch@infradead.org> wrote:
>
>> On Tue, Oct 14, 2014 at 06:38:53AM -0700, Jeff Kirsher wrote:
>> From: Mark Rustad <mark.d.rustad@intel.com>
>>
>> Resolve some missing-field-initializers warnings by using
>> designated initialization.
>
> What tool is warning about these? This construct is perfectly valid C.
next prev parent reply other threads:[~2014-10-17 22:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-14 13:38 Jeff Kirsher
2014-10-17 13:26 ` Christoph Hellwig
2014-10-17 22:44 ` Rustad, Mark D [this message]
2014-10-18 15:15 ` Christoph Hellwig
2014-10-23 17:12 ` Christoph Hellwig
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=C69957AC-DB35-467C-85B1-091B740C74C9@intel.com \
--to=mark.d.rustad@intel.com \
--cc=JBottomley@parallels.com \
--cc=hch@infradead.org \
--cc=jeffrey.t.kirsher@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/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
all inboxes | Powered by JetHome®