From: Daniele Varrazzo Date: Wed, 24 Jul 2024 08:44:46 +0000 (+0200) Subject: ci: add test on strict aliasing warnings X-Git-Tag: 3.2.2~9^2~4 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=2c7646aa2bc17545fd5c466304383637c4b4b6a7;p=thirdparty%2Fpsycopg.git ci: add test on strict aliasing warnings --- diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2cc496f1c..ec87e5450 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -126,7 +126,7 @@ jobs: - name: Configure memory alignment tests if: ${{ matrix.ext == 'align' }} run: | - echo "CFLAGS=-fsanitize=undefined" >> $GITHUB_ENV + echo "CFLAGS=-fsanitize=undefined -Werror=strict-aliasing -Werror=odr -Werror=lto-type-mismatch" >> $GITHUB_ENV echo "UBSAN_OPTIONS=halt_on_error=1" >> $GITHUB_ENV echo "PYTEST_ADDOPTS=-v" >> $GITHUB_ENV