Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
e3364848
Unverified
Kaydet (Commit)
e3364848
authored
Haz 05, 2018
tarafından
INADA Naoki
Kaydeden (comit)
GitHub
Haz 05, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-5755: Move -Wstrict-prototypes to CFLAGS_NODIST (GH-7395)
üst
5f48e264
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
64 additions
and
10 deletions
+64
-10
2018-06-04-21-34-34.bpo-5755.65GmCj.rst
...NEWS.d/next/Build/2018-06-04-21-34-34.bpo-5755.65GmCj.rst
+3
-0
configure
configure
+41
-5
configure.ac
configure.ac
+20
-5
No files found.
Misc/NEWS.d/next/Build/2018-06-04-21-34-34.bpo-5755.65GmCj.rst
0 → 100644
Dosyayı görüntüle @
e3364848
Move ``-Wstrict-prototypes`` option to ``CFLAGS_NODIST`` from ``OPT``. This
option emitted annoying warnings when building extension modules written in
C++.
configure
Dosyayı görüntüle @
e3364848
...
@@ -6676,9 +6676,6 @@ if test "${OPT-unset}" = "unset"
...
@@ -6676,9 +6676,6 @@ if test "${OPT-unset}" = "unset"
then
then
case
$GCC
in
case
$GCC
in
yes
)
yes
)
if test "$CC" != 'g++' ; then
STRICT_PROTO="-Wstrict-prototypes"
fi
# For gcc 4.x we need to use -fwrapv so lets check if its supported
# For gcc 4.x we need to use -fwrapv so lets check if its supported
if
"
$CC
"
-v
--help
2>/dev/null |grep
--
-fwrapv
>
/dev/null
;
then
if
"
$CC
"
-v
--help
2>/dev/null |grep
--
-fwrapv
>
/dev/null
;
then
WRAP
=
"-fwrapv"
WRAP
=
"-fwrapv"
...
@@ -6725,8 +6722,6 @@ then
...
@@ -6725,8 +6722,6 @@ then
;;
;;
esac
esac
OPT="$OPT $STRICT_PROTO"
case
$ac_sys_system
in
case
$ac_sys_system
in
SCO_SV
*
)
OPT
=
"
$OPT
-m486 -DSCO5"
SCO_SV
*
)
OPT
=
"
$OPT
-m486 -DSCO5"
;;
;;
...
@@ -7094,6 +7089,47 @@ fi
...
@@ -7094,6 +7089,47 @@ fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_enable_unreachable_code_warning
"
>
&5
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_enable_unreachable_code_warning
"
>
&5
$as_echo
"
$ac_cv_enable_unreachable_code_warning
"
>
&6
;
}
$as_echo
"
$ac_cv_enable_unreachable_code_warning
"
>
&6
;
}
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking if we can turn on
$CC
strict-prototypes warning"
>
&5
$as_echo_n
"checking if we can turn on
$CC
strict-prototypes warning... "
>
&6
;
}
ac_save_cc
=
"
$CC
"
CC
=
"
$CC
-Werror -Wstrict-prototypes"
if
${
ac_cv_enable_enable_strict_prototypes_warning
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
else
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
if
ac_fn_c_try_compile
"
$LINENO
"
;
then
:
ac_cv_enable_strict_prototypes_warning
=
yes
else
ac_cv_enable_strict_prototypes_warning
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
fi
CC
=
"
$ac_save_cc
"
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_enable_strict_prototypes_warning
"
>
&5
$as_echo
"
$ac_cv_enable_strict_prototypes_warning
"
>
&6
;
}
if
test
$ac_cv_enable_strict_prototypes_warning
=
yes
then
CFLAGS_NODIST
=
"
$CFLAGS_NODIST
-Wstrict-prototypes"
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking if we can make implicit function declaration an error in
$CC
"
>
&5
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking if we can make implicit function declaration an error in
$CC
"
>
&5
$as_echo_n
"checking if we can make implicit function declaration an error in
$CC
... "
>
&6
;
}
$as_echo_n
"checking if we can make implicit function declaration an error in
$CC
... "
>
&6
;
}
ac_save_cc
=
"
$CC
"
ac_save_cc
=
"
$CC
"
...
...
configure.ac
Dosyayı görüntüle @
e3364848
...
@@ -1421,9 +1421,6 @@ if test "${OPT-unset}" = "unset"
...
@@ -1421,9 +1421,6 @@ if test "${OPT-unset}" = "unset"
then
then
case $GCC in
case $GCC in
yes)
yes)
if test "$CC" != 'g++' ; then
STRICT_PROTO="-Wstrict-prototypes"
fi
# For gcc 4.x we need to use -fwrapv so lets check if its supported
# For gcc 4.x we need to use -fwrapv so lets check if its supported
if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
WRAP="-fwrapv"
WRAP="-fwrapv"
...
@@ -1470,8 +1467,6 @@ then
...
@@ -1470,8 +1467,6 @@ then
;;
;;
esac
esac
OPT="$OPT $STRICT_PROTO"
case $ac_sys_system in
case $ac_sys_system in
SCO_SV*) OPT="$OPT -m486 -DSCO5"
SCO_SV*) OPT="$OPT -m486 -DSCO5"
;;
;;
...
@@ -1678,6 +1673,26 @@ yes)
...
@@ -1678,6 +1673,26 @@ yes)
fi
fi
AC_MSG_RESULT($ac_cv_enable_unreachable_code_warning)
AC_MSG_RESULT($ac_cv_enable_unreachable_code_warning)
AC_MSG_CHECKING(if we can turn on $CC strict-prototypes warning)
ac_save_cc="$CC"
CC="$CC -Werror -Wstrict-prototypes"
AC_CACHE_VAL(ac_cv_enable_enable_strict_prototypes_warning,
AC_COMPILE_IFELSE(
[
AC_LANG_PROGRAM([[]], [[]])
],[
ac_cv_enable_strict_prototypes_warning=yes
],[
ac_cv_enable_strict_prototypes_warning=no
]))
CC="$ac_save_cc"
AC_MSG_RESULT($ac_cv_enable_strict_prototypes_warning)
if test $ac_cv_enable_strict_prototypes_warning = yes
then
CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes"
fi
AC_MSG_CHECKING(if we can make implicit function declaration an error in $CC)
AC_MSG_CHECKING(if we can make implicit function declaration an error in $CC)
ac_save_cc="$CC"
ac_save_cc="$CC"
CC="$CC -Werror=implicit-function-declaration"
CC="$CC -Werror=implicit-function-declaration"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment