Skip to content

Commit 8e9d8cd

Browse files
naveen521kklazka
authored andcommitted
gcc: make incompatible-pointer-types as warning
gcc 14 changed `incompatible-pointer-types` from warning to error for now, make it as warning to avoid build failure
1 parent 494b966 commit 8e9d8cd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

configure.ac

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2528,6 +2528,14 @@ case $GCC in
25282528
yes)
25292529
CFLAGS_NODIST="$CFLAGS_NODIST -std=c11"
25302530

2531+
# GCC 14 and later error out with incompatible-pointer-types
2532+
# this only occues on mingw
2533+
case $host in
2534+
*-*-mingw*)
2535+
CFLAGS_NODIST="$CFLAGS_NODIST -Wno-error=incompatible-pointer-types"
2536+
;;
2537+
esac
2538+
25312539
PY_CHECK_CC_WARNING([enable], [extra], [if we can add -Wextra])
25322540
AS_VAR_IF([ac_cv_enable_extra_warning], [yes],
25332541
[CFLAGS_NODIST="$CFLAGS_NODIST -Wextra"])

0 commit comments

Comments
 (0)