[Buildroot] [PATCH 1/1] package/fscryptctl: fix build with gcc 4.8

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Jul 26 20:00:38 UTC 2022


On Tue, 26 Jul 2022 21:52:48 +0200
Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:

> Fix the following build failure with gcc 4.8 raised since bump to
> version 1.0.0 in commit ib832f6eb9d86920907c50901a99f13b44dd94647 and
> https://github.com/google/fscryptctl/commit/9dba7224cbde07df25ba01146a2f6fb897bb9e56:
> 
> fscryptctl.c: In function 'string_to_mode':
> fscryptctl.c:214:3: error: 'for' loop initial declarations are only allowed in C99 mode
>    for (size_t i = 0; i < ARRAY_SIZE(mode_strings); i++) {
>    ^
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/58e8facd9105dcdfbc21ed245de03f3162c98cc9
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
>  package/fscryptctl/fscryptctl.mk | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list