From: Michael Wallner Date: Thu, 22 Sep 2016 06:51:00 +0000 (+0200) Subject: pimp cppcheck X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=72781b71b7e5b3f5765a12e76d021d29cf17c37e;p=m6w6%2Ftravis-pecl pimp cppcheck --- diff --git a/Makefile b/Makefile index b73f4dd..dfd99da 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,13 @@ PECL_DIR := $(if $(filter ext ext%, $(MAKECMDGOALS)), $(curdir), $(srcdir)/pecl- PHP_RELEASES = $(srcdir)/releases.tsv PHP_VERSION ?= $(shell test -e $(PHP_RELEASES) && cat $(PHP_RELEASES) | awk -F "\t" '/^$(PHP)\t/{print $$2}') -CPPCHECK ?= -v -j $(JOBS) --enable=portability,style --error-exitcode=42 --suppressions-list=$(makdir)/cppcheck.suppressions -I. +CPPCHECK_STD ?= c89 +CPPCHECK_ENABLE ?= portability,style +CPPCHECK_EXITCODE ?= 42 +CPPCHECK_SUPPRESSIONS ?= $(makdir)/cppcheck.suppressions +CPPCHECK_INCLUDES ?= -I. $(shell awk -F= '/^CPPFLAGS|^INCLUDES/{print $$2}'