2018-09-12 14:34:10 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Peter Jones <pjones@redhat.com>
|
2019-08-15 06:01:31 +00:00
|
|
|
Date: Thu, 11 Jul 2019 18:20:37 +0200
|
2018-09-12 14:34:10 +00:00
|
|
|
Subject: [PATCH] Don't use -Wno-sign-compare -Wno-conversion -Wno-error, do
|
|
|
|
use -Wextra.
|
|
|
|
|
2024-10-18 18:18:00 +00:00
|
|
|
Updated for grub-2.12 which introduced new sign comparison problems:
|
|
|
|
we're using -Wno-error=sign-compare
|
|
|
|
|
2018-09-12 14:34:10 +00:00
|
|
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
|
---
|
2024-10-18 18:18:00 +00:00
|
|
|
configure.ac | 8 ++++++++
|
|
|
|
conf/Makefile.common | 2 +-
|
|
|
|
2 files changed, 9 insertions(+), 1 deletion(-)
|
2018-09-12 14:34:10 +00:00
|
|
|
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
2024-10-18 18:18:00 +00:00
|
|
|
index 2175aa56997..81240397384 100644
|
2018-09-12 14:34:10 +00:00
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
2024-10-18 18:18:00 +00:00
|
|
|
@@ -2147,6 +2147,14 @@ if test x"$enable_werror" != xno ; then
|
|
|
|
fi
|
2018-09-12 14:34:10 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
+AC_ARG_ENABLE([wextra],
|
|
|
|
+ [AS_HELP_STRING([--disable-wextra],
|
|
|
|
+ [do not use -Wextra when building GRUB])])
|
|
|
|
+if test x"$enable_wextra" != xno ; then
|
|
|
|
+ TARGET_CFLAGS="$TARGET_CFLAGS -Wextra"
|
|
|
|
+ HOST_CFLAGS="$HOST_CFLAGS -Wextra"
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
TARGET_CPP="$TARGET_CC -E"
|
|
|
|
TARGET_CCAS=$TARGET_CC
|
|
|
|
|
|
|
|
diff --git a/conf/Makefile.common b/conf/Makefile.common
|
2024-10-18 18:18:00 +00:00
|
|
|
index 54f0f7f7664..e53ff352407 100644
|
2018-09-12 14:34:10 +00:00
|
|
|
--- a/conf/Makefile.common
|
|
|
|
+++ b/conf/Makefile.common
|
2024-10-18 18:18:00 +00:00
|
|
|
@@ -76,7 +76,7 @@ grubconfdir = $(sysconfdir)/grub.d
|
2018-09-12 14:34:10 +00:00
|
|
|
platformdir = $(pkglibdir)/$(target_cpu)-$(platform)
|
|
|
|
starfielddir = $(pkgdatadir)/themes/starfield
|
|
|
|
|
2024-10-18 18:18:00 +00:00
|
|
|
-CFLAGS_GNULIB = -Wno-undef -Wno-sign-compare -Wno-unused -Wno-unused-parameter -Wno-redundant-decls -Wno-unreachable-code -Wno-conversion -Wno-error=attributes
|
|
|
|
+CFLAGS_GNULIB = -Wno-undef -Wno-error=sign-compare -Wno-unused -Wno-unused-parameter -Wno-redundant-decls -Wno-unreachable-code -Wno-error=attributes
|
2019-08-15 06:01:31 +00:00
|
|
|
CPPFLAGS_GNULIB = -I$(top_builddir)/grub-core/lib/gnulib -I$(top_srcdir)/grub-core/lib/gnulib
|
2018-09-12 14:34:10 +00:00
|
|
|
|
|
|
|
CFLAGS_POSIX = -fno-builtin
|