Skip to content

Commit 433a5f8

Browse files
[3.12] gh-120671: Fix PY_CHECK_CC_WARNING() in configure.ac (GH-120822) (#120986)
gh-120671: Fix PY_CHECK_CC_WARNING() in configure.ac (GH-120822) Add missing space in AS_VAR_APPEND() on CFLAGS. (cherry picked from commit 2106c9b) Co-authored-by: Michael Allwright <[email protected]>
1 parent 52bc997 commit 433a5f8

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix failing configure tests due to a missing space when appending to CFLAGS.

configure

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2371,7 +2371,7 @@ AC_DEFUN([PY_CHECK_CC_WARNING], [
23712371
AS_VAR_PUSHDEF([py_var], [ac_cv_$1_]m4_normalize($2)[_warning])
23722372
AC_CACHE_CHECK([m4_ifblank([$3], [if we can $1 $CC $2 warning], [$3])], [py_var], [
23732373
AS_VAR_COPY([py_cflags], [CFLAGS])
2374-
AS_VAR_APPEND([CFLAGS], ["-W$2 -Werror"])
2374+
AS_VAR_APPEND([CFLAGS], [" -W$2 -Werror"])
23752375
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
23762376
[AS_VAR_SET([py_var], [yes])],
23772377
[AS_VAR_SET([py_var], [no])])

0 commit comments

Comments
 (0)