Skip to content

Commit

Permalink
GH Actions: enable Werror in PCP build
Browse files Browse the repository at this point in the history
Just exclude the singe warning type currently issued.

Avoids e64269d ("Fix process state handling compiler warning on PCP platform")
  • Loading branch information
cgzones authored and BenBE committed Dec 20, 2021
1 parent f782f82 commit 442c159
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,18 @@ 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
run: sudo apt-get install --no-install-recommends libpcp3-dev libncursesw5-dev libtinfo-dev libgpm-dev
- 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

Expand Down

0 comments on commit 442c159

Please sign in to comment.