Subject: [PATCH] Fix const definition without initialization
David Oberhollenzer
david.oberhollenzer at sigma-star.at
Sun Oct 18 17:00:15 EDT 2020
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
More information about the linux-mtd
mailing list