[sheepdog] [PATCH 2/3] add support for sparse check

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Sat Oct 6 17:36:32 CEST 2012


Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 Makefile.am |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index f1b97eb..ca6645d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -68,3 +68,9 @@ rpm: clean
 	$(MAKE) $(SPEC) $(TARFILE)
 	rpmbuild $(RPMBUILDOPTS) -ba $(SPEC)
 
+CGCC=cgcc
+CGCC_CFLAGS=-Wbitwise -Wno-return-void -D__SIZEOF_POINTER__=8 $(ARCH)
+
+sparse-check: ARCH=$(shell sh script/checkarch.sh)
+sparse-check:
+	$(MAKE) CC=$(CGCC) CFLAGS="$(CFLAGS) $(CGCC_CFLAGS)"
-- 
1.7.2.5




More information about the sheepdog mailing list