fcoe-utils/fcoe-utils-gcc11.patch
Troy Dawson 11bdb6c875 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/fcoe-utils#4962fcf0f984ee5ecf8c07b6538fa14638727291
2020-11-18 14:33:36 -08:00

29 lines
995 B
Diff

diff --git a/Makefile.am b/Makefile.am
index 2f323e4..d6bc3c3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,6 +25,10 @@ fcping_CFLAGS = $(AM_CFLAGS)
## rules for building fipvlan
fipvlan_SOURCES = fipvlan.c
fipvlan_LDADD = lib/libutil.a
+# These look like valid warnings, but the code may be fine in practice. Someone
+# with a deeper understanding of the source needs to chime in
+fipvlan_CFLAGS = $(AM_CFLAGS) -Wno-error=array-bounds -Wno-stringop-overread
+
AUTOMAKE_OPTIONS=subdir-objects
noinst_LIBRARIES = lib/libutil.a libopenfcoe.a
diff --git a/Makefile.am b/Makefile.am
index 11262ec..08bc207 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -20,7 +20,7 @@ fcoemon_CFLAGS = $(AM_CFLAGS) $(DCBD_CFLAGS)
## rules for building fcping
fcping_SOURCES = fcping.c
fcping_LDADD = lib/libutil.a libopenfcoe.a $(PCIACCESS_LIBS) -lrt
-fcping_CFLAGS = $(AM_CFLAGS)
+fcping_CFLAGS = $(AM_CFLAGS) -Wno-error=stringop-overflow
## rules for building fipvlan
fipvlan_SOURCES = fipvlan.c