From 442c1596f658daa667e5e25d9bc44beb4072bb64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Sat, 27 Nov 2021 13:50:18 +0100 Subject: GH Actions: enable Werror in PCP build Just exclude the singe warning type currently issued. Avoids e64269df ("Fix process state handling compiler warning on PCP platform") --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 617ed305..af8ed883 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -113,6 +113,10 @@ jobs: build-ubuntu-latest-pcp: # Turns out 'ubuntu-latest' can be older than 20.04, we want PCP v5+ runs-on: ubuntu-20.04 + env: + # Until Ubuntu catches up with pcp-5.2.3+: + # pcp/Platform.c:309:45: warning: passing argument 2 of ‘pmLookupName’ from incompatible pointer type [-Wincompatible-pointer-types] + CFLAGS: -Wno-error=incompatible-pointer-types steps: - uses: actions/checkout@v2 - name: Install Dependencies @@ -120,9 +124,7 @@ jobs: - name: Bootstrap run: ./autogen.sh - name: Configure - # Until Ubuntu catches up with pcp-5.2.3+, cannot use -werror due to: - # passing argument 2 of ‘pmLookupName’ from incompatible pointer type - run: ./configure --enable-pcp --enable-unicode + run: ./configure --enable-werror --enable-pcp --enable-unicode - name: Build run: make -k -- cgit v1.2.3