vlog95: for cppcheck the target functions are used by the compiler.

This commit is contained in:
Cary R 2014-05-21 09:00:47 -07:00
parent b7b77b2e75
commit 6547fdee3d
2 changed files with 10 additions and 1 deletions

View File

@ -56,7 +56,8 @@ distclean: clean
rm -f Makefile config.log
cppcheck: $(O:.o=.c)
cppcheck --enable=all -f $(INCLUDE_PATH) $^
cppcheck --enable=all -f --suppressions-list=$(srcdir)/cppcheck.sup \
--relative-paths=$(srcdir) $(INCLUDE_PATH) $^
Makefile: $(srcdir)/Makefile.in ../config.status
cd ..; ./config.status --file=tgt-vlog95/$@

8
tgt-vlog95/cppcheck.sup Normal file
View File

@ -0,0 +1,8 @@
// These are the global access functions called from the compiler so they
// are not used here.
// target_design()
unusedFunction:vlog95.c:59
// target_query()
unusedFunction:vlog95.c:226