linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
To: "Hans Christian Lønstad" <hcl@datarespons.no>,
	"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: Subject: [PATCH] Fix const definition without initialization
Date: Sun, 18 Oct 2020 23:00:15 +0200	[thread overview]
Message-ID: <4bc5a052-7a73-a99d-9e3b-12c7e981af8d@sigma-star.at> (raw)
In-Reply-To: <AM6PR03MB416574D2D264C136BA63C4C5C4BF0@AM6PR03MB4165.eurprd03.prod.outlook.com>

Hi,

sorry for the delay. I must have missed this one on the ML but stumbled
over it today when going through the patchwork backlog.

Please use a prefix on the subject next time to highlight that this patch
is for mtd-utils.

Also, I had to fix some white space mangling to apply the patch on my end.

On 5/13/20 9:11 AM, Hans Christian Lønstad wrote:
> Compile error using g++ 9.3. Remove const specifier given the structure is filled in run-time.

Where do you get the compile error? Could you paste an error message?

I did a quick git-grep and it appears to me that the code that initializes
those fields explicitly casts the const away.

You wrote g++. Did you mean gcc or are you trying to force the C code through
a C++ compiler?

Thanks,

David

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

      reply	other threads:[~2020-10-18 21:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-13  7:11 Subject: [PATCH] Fix const definition without initialization Hans Christian Lønstad
2020-10-18 21:00 ` David Oberhollenzer [this message]

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=4bc5a052-7a73-a99d-9e3b-12c7e981af8d@sigma-star.at \
    --to=david.oberhollenzer@sigma-star.at \
    --cc=hcl@datarespons.no \
    --cc=linux-mtd@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).