From c2c175df3126417bd38f1b8494fbb109f2c5c5e7 Mon Sep 17 00:00:00 2001 From: Phil Krylov Date: Sat, 11 Nov 2023 21:08:42 +0100 Subject: [PATCH] 2023-11-11 21:08 UTC+0100 Phil Krylov (phil a t krylov.eu) * .github/workflows/linux-ci.yml * .github/workflows/macos-ci.yml * .github/workflows/vm1-ci.yml * .github/workflows/windows-ci.yml * Use `-Wno-error=array-bounds` in GCC strict mode CI builds as the array bounds checker is buggy in GCC 12-13. --- .github/workflows/linux-ci.yml | 1 + .github/workflows/macos-ci.yml | 1 + .github/workflows/vm1-ci.yml | 1 + .github/workflows/windows-ci.yml | 1 + ChangeLog.txt | 8 ++++++++ 5 files changed, 12 insertions(+) diff --git a/.github/workflows/linux-ci.yml b/.github/workflows/linux-ci.yml index 18f68edc0d..44cff247fc 100644 --- a/.github/workflows/linux-ci.yml +++ b/.github/workflows/linux-ci.yml @@ -71,6 +71,7 @@ jobs: case ${{matrix.strictness}} in normal) ;; strict) case ${{matrix.compiler}} in + (gcc) HB_USER_CFLAGS="$HB_USER_CFLAGS -Werror -Wno-error=array-bounds" ;; (*) HB_USER_CFLAGS="$HB_USER_CFLAGS -Werror" ;; esac ;; esac diff --git a/.github/workflows/macos-ci.yml b/.github/workflows/macos-ci.yml index 871e24c786..fc6cd889bd 100644 --- a/.github/workflows/macos-ci.yml +++ b/.github/workflows/macos-ci.yml @@ -61,6 +61,7 @@ jobs: case ${{matrix.strictness}} in normal) ;; strict) case ${{matrix.compiler}} in + (gcc) HB_USER_CFLAGS="$HB_USER_CFLAGS -Werror -Wno-error=array-bounds" ;; (*) HB_USER_CFLAGS="$HB_USER_CFLAGS -Werror" ;; esac ;; esac diff --git a/.github/workflows/vm1-ci.yml b/.github/workflows/vm1-ci.yml index c3216c32f8..1e11ab6ca2 100644 --- a/.github/workflows/vm1-ci.yml +++ b/.github/workflows/vm1-ci.yml @@ -104,6 +104,7 @@ jobs: case ${{matrix.strictness}} in normal) ;; strict) case ${{matrix.compiler}} in + (gcc) HB_USER_CFLAGS="$HB_USER_CFLAGS -Werror -Wno-error=array-bounds" ;; (*) HB_USER_CFLAGS="$HB_USER_CFLAGS -Werror" ;; esac ;; esac diff --git a/.github/workflows/windows-ci.yml b/.github/workflows/windows-ci.yml index d7f5d17697..ddfe220069 100644 --- a/.github/workflows/windows-ci.yml +++ b/.github/workflows/windows-ci.yml @@ -87,6 +87,7 @@ jobs: case ${{matrix.strictness}} in normal) ;; strict) case ${{matrix.compiler}} in + (mingw64) HB_USER_CFLAGS="$HB_USER_CFLAGS -Werror -Wno-error=array-bounds" ;; (bcc) HB_USER_CFLAGS="$HB_USER_CFLAGS -w!" ;; (*) HB_USER_CFLAGS="$HB_USER_CFLAGS -Werror" ;; esac ;; diff --git a/ChangeLog.txt b/ChangeLog.txt index a5518eeb29..e75b7eb395 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -7,6 +7,14 @@ Entries may not always be in chronological/commit order. See license at the end of file. */ +2023-11-11 21:08 UTC+0100 Phil Krylov (phil a t krylov.eu) + * .github/workflows/linux-ci.yml + * .github/workflows/macos-ci.yml + * .github/workflows/vm1-ci.yml + * .github/workflows/windows-ci.yml + * Use `-Wno-error=array-bounds` in GCC strict mode CI builds as the array + bounds checker is buggy in GCC 12-13. + 2023-11-11 20:05 UTC+0100 Phil Krylov (phil a t krylov.eu) * contrib/gtwvg/gtwvg.h * contrib/gtwvg/wvgcore.c