Skip to content

Commit

Permalink
buildsys: disable buggy or unhelpful warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Yury V. Zaytsev <[email protected]>
  • Loading branch information
zyv committed Nov 4, 2024
1 parent 43e6c04 commit 6ea7bd0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ jobs:
call-build-macos:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
uses: ./.github/workflows/ci-macos.yml
with:
# https://github.com/llvm/llvm-project/issues/20574
CFLAGS: -Wno-assign-enum

call-build-solaris:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
Expand All @@ -29,6 +26,5 @@ jobs:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
uses: ./.github/workflows/ci-freebsd.yml
with:
# https://github.com/llvm/llvm-project/issues/20574
# https://github.com/GNUAspell/aspell/pull/651
CFLAGS: -Wno-assign-enum -Wno-strict-prototypes
CFLAGS: -Wno-strict-prototypes
9 changes: 8 additions & 1 deletion m4.include/mc-cflags.m4
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ AC_DEFUN([mc_CHECK_CFLAGS],[
AX_APPEND_COMPILE_FLAGS([-Wint-conversion], [mc_configured_cflags], [$EXTRA_OPTION])
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([-Wconditional-uninitialized], [mc_configured_cflags], [$EXTRA_OPTION])
AX_APPEND_COMPILE_FLAGS([-Wfloat-conversion], [mc_configured_cflags], [$EXTRA_OPTION])
Expand All @@ -60,5 +59,13 @@ AC_DEFUN([mc_CHECK_CFLAGS],[
AX_APPEND_COMPILE_FLAGS([-Wunused-result], [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()
])

0 comments on commit 6ea7bd0

Please sign in to comment.