diff options
author | Jes Sorensen <jsorensen@fb.com> | 2018-06-04 20:49:59 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2018-06-04 20:49:59 +0200 |
commit | 28156667e5c7dc3c7b978f2d58c2a427038fedda (patch) | |
tree | ddc7ed42d6acd2f971a6f6d74a2404f5a1fac88e /Makefile | |
parent | mdadm/test: correct tests/testdev as testdev in 02r5grow (diff) | |
download | mdadm-28156667e5c7dc3c7b978f2d58c2a427038fedda.tar.xz mdadm-28156667e5c7dc3c7b978f2d58c2a427038fedda.zip |
gcc-8 coverity hack
Coverity still has issues with gcc-7, not to mention gcc-8. Hack around
it, until they fix it.
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -42,6 +42,10 @@ KLIBC=/home/src/klibc/klibc-0.77 KLIBC_GCC = gcc -nostdinc -iwithprefix include -I$(KLIBC)/klibc/include -I$(KLIBC)/linux/include -I$(KLIBC)/klibc/arch/i386/include -I$(KLIBC)/klibc/include/bits32 +ifdef COVERITY +COVERITY_FLAGS=-include coverity-gcc-hack.h +endif + CC ?= $(CROSS_COMPILE)gcc CXFLAGS ?= -ggdb CWFLAGS = -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter @@ -177,6 +181,9 @@ everything-test: all mdadm.static swap_super test_stripe \ # mdadm.uclibc doesn't work on x86-64 # mdadm.tcc doesn't work.. +%.o: %.c + $(CC) $(CFLAGS) $(CPPFLAGS) $(COVERITY_FLAGS) -o $@ -c $< + mdadm : $(OBJS) | check_rundir $(CC) $(CFLAGS) $(LDFLAGS) -o mdadm $(OBJS) $(LDLIBS) @@ -291,10 +298,10 @@ test: mdadm mdmon test_stripe swap_super raid6check clean : rm -f mdadm mdmon $(OBJS) $(MON_OBJS) $(STATICOBJS) core *.man \ - mdadm.tcc mdadm.uclibc mdadm.static *.orig *.porig *.rej *.alt .merge_file_* \ - mdadm.Os mdadm.O2 mdmon.O2 swap_super \ - init.cpio.gz mdadm.uclibc.static test_stripe raid6check raid6check.o mdmon \ - mdadm.8 + mdadm.tcc mdadm.uclibc mdadm.static *.orig *.porig *.rej *.alt \ + .merge_file_* mdadm.Os mdadm.O2 mdmon.O2 swap_super init.cpio.gz \ + mdadm.uclibc.static test_stripe raid6check raid6check.o mdmon mdadm.8 + rm -rf cov-int dist : clean ./makedist |