From 9217cecc8bee7b2a6759f38eafb823703c9d0617 Mon Sep 17 00:00:00 2001 From: Xiretza Date: Mon, 16 May 2022 18:32:51 +0200 Subject: fix(configure): disable -Werror by default Because the build system does not have direct control over the compiler, it cannot ensure that no warnings are issued in downstream compilations. Such warnings can occur due to newer compiler versions with more sophisticated diagnostics, older compiler versions with diagnostics bugs, or simply different, untested compilers. With -Werror enabled by default, these harmless warnings result in complete compilation failures. The option remains enabled in CI to ensure upstream code quality. --- .github/workflows/Test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml index 18f06619d..0ede8cee3 100644 --- a/.github/workflows/Test.yml +++ b/.github/workflows/Test.yml @@ -28,7 +28,7 @@ jobs: run: | docker run --rm -i -v $(pwd):/src -w /src ghdl/debug:base <<'EOF' #!/usr/bin/env sh - ./configure && make && make install + ./configure --enable-werror && make && make install gnatdoc -P./ghdl EOF @@ -53,7 +53,7 @@ jobs: docker build -t ghdl/doc . -f- <<-EOF FROM ghdl/build:doc COPY . /opt/ghdl - RUN cd /opt/ghdl && ./configure && make && make install + RUN cd /opt/ghdl && ./configure --enable-werror && make && make install EOF - name: '📥 Download artifact: gnatdoc' -- cgit v1.2.3