buildsys: disable buggy or unhelpful warnings

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
Yury V. Zaytsev 2024-11-03 09:43:29 +01:00
parent 43e6c040de
commit 6ea7bd0196
2 changed files with 9 additions and 6 deletions

View File

@ -17,9 +17,6 @@ jobs:
call-build-macos: call-build-macos:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
uses: ./.github/workflows/ci-macos.yml uses: ./.github/workflows/ci-macos.yml
with:
# https://github.com/llvm/llvm-project/issues/20574
CFLAGS: -Wno-assign-enum
call-build-solaris: call-build-solaris:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
@ -29,6 +26,5 @@ jobs:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
uses: ./.github/workflows/ci-freebsd.yml uses: ./.github/workflows/ci-freebsd.yml
with: with:
# https://github.com/llvm/llvm-project/issues/20574
# https://github.com/GNUAspell/aspell/pull/651 # https://github.com/GNUAspell/aspell/pull/651
CFLAGS: -Wno-assign-enum -Wno-strict-prototypes CFLAGS: -Wno-strict-prototypes

View File

@ -37,7 +37,6 @@ AC_DEFUN([mc_CHECK_CFLAGS],[
AX_APPEND_COMPILE_FLAGS([-Wint-conversion], [mc_configured_cflags], [$EXTRA_OPTION]) AX_APPEND_COMPILE_FLAGS([-Wint-conversion], [mc_configured_cflags], [$EXTRA_OPTION])
dnl Sorted -W options not included in -Wall and -Wextra dnl Sorted -W options not included in -Wall and -Wextra
AX_APPEND_COMPILE_FLAGS([-Wassign-enum], [mc_configured_cflags], [$EXTRA_OPTION])
AX_APPEND_COMPILE_FLAGS([-Wbad-function-cast], [mc_configured_cflags], [$EXTRA_OPTION]) AX_APPEND_COMPILE_FLAGS([-Wbad-function-cast], [mc_configured_cflags], [$EXTRA_OPTION])
AX_APPEND_COMPILE_FLAGS([-Wconditional-uninitialized], [mc_configured_cflags], [$EXTRA_OPTION]) AX_APPEND_COMPILE_FLAGS([-Wconditional-uninitialized], [mc_configured_cflags], [$EXTRA_OPTION])
AX_APPEND_COMPILE_FLAGS([-Wfloat-conversion], [mc_configured_cflags], [$EXTRA_OPTION]) AX_APPEND_COMPILE_FLAGS([-Wfloat-conversion], [mc_configured_cflags], [$EXTRA_OPTION])
@ -60,5 +59,13 @@ AC_DEFUN([mc_CHECK_CFLAGS],[
AX_APPEND_COMPILE_FLAGS([-Wunused-result], [mc_configured_cflags], [$EXTRA_OPTION]) AX_APPEND_COMPILE_FLAGS([-Wunused-result], [mc_configured_cflags], [$EXTRA_OPTION])
AX_APPEND_COMPILE_FLAGS([-Wwrite-strings], [mc_configured_cflags], [$EXTRA_OPTION]) AX_APPEND_COMPILE_FLAGS([-Wwrite-strings], [mc_configured_cflags], [$EXTRA_OPTION])
dnl Explicitly disabled warnings
dnl This flags casts like (GCompareDataFunc) with missing parameter
AX_APPEND_COMPILE_FLAGS([-Wno-cast-function-type], [mc_configured_cflags], [$EXTRA_OPTION])
dnl https://github.com/llvm/llvm-project/issues/20574
AX_APPEND_COMPILE_FLAGS([-Wno-assign-enum], [mc_configured_cflags], [$EXTRA_OPTION])
AC_LANG_POP() AC_LANG_POP()
]) ])