[PATCH] btrfs: avoid "used uninitialized" error with GCC7

2017-03-31 Thread Andrei Borzenkov
sblock was local and so considered new variable on every loop iteration. While on it, dynamically allocate buffer to reduce stack usage. Closes: 50597 --- grub-core/fs/btrfs.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/grub-core/fs/btrfs.c b/grub-cor

[PATCH] i386, x86_64, ppc: fix switch fallthrough cases with GCC7

2017-03-31 Thread Andrei Borzenkov
In util/getroot and efidisk slightly modify exitsing comment to mostly retain it but still make GCC7 compliant with respect to fall through annotation. In grub-core/lib/xzembed/xz_dec_lzma2.c it adds same comments as upstream. In grub-core/tests/setjmp_tets.c declare functions as "noreturn" to su