gh-124191: Disable -Wconversion in enable safety (gh-124192)

This commit is contained in:
Nate Ohlson
2024-09-17 22:55:09 -05:00
committed by GitHub
parent d8c0fe1944
commit 29a1a6e3ed
4 changed files with 5 additions and 514 deletions

39
configure generated vendored
View File

@@ -9771,45 +9771,6 @@ then :
else $as_nop
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: -Wtrampolines not supported" >&5
printf "%s\n" "$as_me: WARNING: -Wtrampolines not supported" >&2;}
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wconversion" >&5
printf %s "checking whether C compiler accepts -Wconversion... " >&6; }
if test ${ax_cv_check_cflags__Werror__Wconversion+y}
then :
printf %s "(cached) " >&6
else $as_nop
ax_check_save_flags=$CFLAGS
CFLAGS="$CFLAGS -Werror -Wconversion"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main (void)
{
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
ax_cv_check_cflags__Werror__Wconversion=yes
else $as_nop
ax_cv_check_cflags__Werror__Wconversion=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
CFLAGS=$ax_check_save_flags
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wconversion" >&5
printf "%s\n" "$ax_cv_check_cflags__Werror__Wconversion" >&6; }
if test "x$ax_cv_check_cflags__Werror__Wconversion" = xyes
then :
CFLAGS_NODIST="$CFLAGS_NODIST -Wconversion"
else $as_nop
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: -Wconversion not supported" >&5
printf "%s\n" "$as_me: WARNING: -Wconversion not supported" >&2;}
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wimplicit-fallthrough" >&5