From 73bf7241e611ea28e7a58584341921d1262afaa1 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Tue, 5 Dec 2023 20:46:55 +0100 Subject: lint,validate: fix for openbsd - Remove GNU specific stuff (ln -v, mktemp --tempdir, grep --color) - Remove GCC specific flags in sendemail-validate (-Warith-conversion) - Add -std=c99 and -Wpedantic and fix the reported warnings. - Explicitly call gmake everywhere. - Run our custom analyzer standalone. Golangci lint plugins are not supported on OpenBSD. Indirect dependency to golang.org/x/mod is required somehow... Reported-by: Johannes Thyssen Tishman Signed-off-by: Robin Jarry Tested-by: Johannes Thyssen Tishman --- .builds/alpine-edge.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to '.builds') diff --git a/.builds/alpine-edge.yml b/.builds/alpine-edge.yml index 5edd26a5..c8892ccb 100644 --- a/.builds/alpine-edge.yml +++ b/.builds/alpine-edge.yml @@ -12,20 +12,20 @@ environment: DESTDIR: ./out GOFLAGS: "-tags=notmuch" CC: gcc - CFLAGS: -O2 -g -Wall -Wextra -Wconversion -Warith-conversion -Werror -Wformat-security -Wstack-protector -fstack-protector-strong -fanalyzer + CFLAGS: -O0 -g -std=c99 -Wall -Wextra -Wconversion -Werror -Wformat-security -Wstack-protector -Wpedantic -Wmissing-prototypes FILTERS_TEST_PREFIX: valgrind --leak-check=full --error-exitcode=1 tasks: - build: | - make -C aerc + gmake -C aerc - install: | - make -C aerc install checkinstall + gmake -C aerc install checkinstall - test: | - make -C aerc tests + gmake -C aerc tests - lint: | - make -C aerc lint + gmake -C aerc lint - ancient-go-version: | curl -O https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/go-1.18.7-r0.apk sudo apk add ./go-1.18.7-r0.apk - make -C aerc clean all + gmake -C aerc clean all - check-patches: | - make -C aerc check-patches + gmake -C aerc check-patches -- cgit