[PATCH] grub2.cfg: fix GRUB compilation with GCC 12.

Karel Gardas karel at functional.vision
Sun Mar 19 22:13:47 UTC 2023


---
 source-builder/config/grub2.cfg | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/source-builder/config/grub2.cfg b/source-builder/config/grub2.cfg
index 2333d6a..174b846 100644
--- a/source-builder/config/grub2.cfg
+++ b/source-builder/config/grub2.cfg
@@ -56,7 +56,8 @@ URL: 	   https://www.gnu.org/software/grub/index.html
     --mandir=%{_mandir} --infodir=%{_infodir} \
     --with-platform=%{grub2_platform} \
     --target=%{grub2_target} \
-    --disable-libzfs           # broken on FreeBSD and not needed at all
+    --disable-libzfs \         # broken on FreeBSD and not needed at all
+    --disable-werror           # fixes compilation by GCC 12
 
   %{__make} %{?_smp_mflags} all
 
-- 
2.25.1



More information about the devel mailing list