]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/mdadm/gcc-7.patch
mdadm: fix build with gcc-7
[people/pmueller/ipfire-2.x.git] / src / patches / mdadm / gcc-7.patch
1 diff -Naur mdadm-4.0.org/Makefile mdadm-4.0/Makefile
2 --- mdadm-4.0.org/Makefile 2017-01-09 22:46:34.000000000 +0100
3 +++ mdadm-4.0/Makefile 2018-01-19 11:18:42.868219725 +0100
4 @@ -43,7 +43,7 @@
5
6 CC ?= $(CROSS_COMPILE)gcc
7 CXFLAGS ?= -ggdb
8 -CWFLAGS = -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter
9 +CWFLAGS = -Wall -Werror -Werror=implicit-fallthrough=0 -Werror=format-overflow=0 -Werror=format-truncation=0 -Wstrict-prototypes -Wextra -Wno-unused-parameter
10 ifdef WARN_UNUSED
11 CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -O3
12 endif