diff --git a/Makefile b/Makefile index 67eeac7..1b4e1a7 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ C_FLAGS += -fpic C_FLAGS += -O0 -g -Wall -Wextra -Werror CPP_FLAGS += $(addprefix -I, $(INCLUDES)) -CHECK_FLAGS = --enable=all --template=gcc --error-exitcode=1 --suppress=missingIncludeSystem +CHECK_FLAGS = --enable=all --template=gcc --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr $(C_SRCS) C_SRCS = $(wildcard $(SRC_DIR)/*.c) C_OBJS = $(patsubst $(SRC_DIR)%,$(OBJ_DIR)%,$(patsubst %.c,%.o,$(C_SRCS))) diff --git a/src/gpio.c b/src/gpio.c index 238a81d..4659398 100644 --- a/src/gpio.c +++ b/src/gpio.c @@ -32,6 +32,7 @@ static int ftdi_open(const struct gpio *gpio) return EXIT_SUCCESS; } +// cppcheck-suppress unusedFunction int gpio_open(const struct gpio *gpio) { int res; @@ -72,6 +73,7 @@ int gpio_open(const struct gpio *gpio) return EXIT_SUCCESS; } +// cppcheck-suppress unusedFunction int gpio_close(const struct gpio *gpio) { if(NULL == gpio) { @@ -90,6 +92,7 @@ int gpio_close(const struct gpio *gpio) return EXIT_SUCCESS; } +// cppcheck-suppress unusedFunction int gpio_read(const struct gpio *gpio, unsigned int *value) { if(NULL == gpio || NULL == value) { @@ -134,6 +137,7 @@ int gpio_write(const struct gpio *gpio, unsigned int value) return EXIT_SUCCESS; } +// cppcheck-suppress unusedFunction int gpio_toggle(const struct gpio *gpio) { int res;