From 519d4f670bb29712fce14c8b21881aaa15ed4c20 Mon Sep 17 00:00:00 2001 From: Ivano Bilenchi Date: Thu, 14 Mar 2024 22:33:32 +0100 Subject: [PATCH] Fix warnings on gcc-13 --- .github/workflows/test.yml | 19 +++++++++++-------- lib/ulib | 2 +- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a4dc2b32..0a9c4c21 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,8 +7,10 @@ on: env: build_dir: build build_config: Release - cflags_gnuc: -Werror -fsanitize=address - lflags_gnuc: -fsanitize=address + cflags_gnuc: -Werror + lflags_gnuc: '' + cflags_clang: -Werror -fsanitize=address + lflags_clang: -fsanitize=address cflags_msvc: /WX lflags_msvc: '' doxygen_version: ${{secrets.doxygen_version}} @@ -35,14 +37,15 @@ jobs: echo 'cflags="${{env.cflags_msvc}}"' >> $GITHUB_ENV echo 'lflags="${{env.lflags_msvc}}"' >> $GITHUB_ENV choco install winflexbison3 - else + elif [ $RUNNER_OS == 'Linux' ]; then echo 'cflags="${{env.cflags_gnuc}}"' >> $GITHUB_ENV echo 'lflags="${{env.lflags_gnuc}}"' >> $GITHUB_ENV - if [ $RUNNER_OS == 'macOS' ]; then - brew install flex bison - echo '/usr/local/opt/bison/bin' >> $GITHUB_PATH - echo '/usr/local/opt/flex/bin' >> $GITHUB_PATH - fi + elif [ $RUNNER_OS == 'macOS' ]; then + echo 'cflags="${{env.cflags_clang}}"' >> $GITHUB_ENV + echo 'lflags="${{env.lflags_clang}}"' >> $GITHUB_ENV + brew install flex bison + echo '/usr/local/opt/bison/bin' >> $GITHUB_PATH + echo '/usr/local/opt/flex/bin' >> $GITHUB_PATH fi shell: bash diff --git a/lib/ulib b/lib/ulib index d5177151..44aaf2e8 160000 --- a/lib/ulib +++ b/lib/ulib @@ -1 +1 @@ -Subproject commit d51771518421cf9e633cb1f65777d983bc85ae2c +Subproject commit 44aaf2e8322b9f81e8d798614525ae15ce81edf1