btrfs-progs: build: use -std=gnu89 for sparse

Sparse does not seem to support gnu90 that we'd like to keep for the
regular build. Use gnu89 for C=1 build.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2017-09-23 21:53:26 +02:00
parent 4498f53707
commit 5d57bdeb23

View file

@ -62,8 +62,9 @@ DEBUG_LDFLAGS :=
TOPDIR := $(shell pwd)
# Common build flags
CSTD = -std=gnu90
CFLAGS = $(SUBST_CFLAGS) \
-std=gnu90 \
$(CSTD) \
-include config.h \
-DBTRFS_FLAT_INCLUDES \
-D_XOPEN_SOURCE=700 \
@ -262,6 +263,7 @@ ifdef C
grep -v __SIZE_TYPE__ > $(check_defs))
check = $(CHECKER)
check_echo = echo
CSTD = -std=gnu89
else
check = true
check_echo = true