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
7f9cc935
Kaydet (Commit)
7f9cc935
authored
Agu 01, 2014
tarafından
Charles-François Natali
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #22110: Enable extra compilation warnings.
üst
30575c73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
134 additions
and
0 deletions
+134
-0
configure
configure
+88
-0
configure.ac
configure.ac
+46
-0
No files found.
configure
Dosyayı görüntüle @
7f9cc935
...
...
@@ -6510,6 +6510,94 @@ $as_echo "$ac_cv_declaration_after_statement_warning" >&6; }
BASECFLAGS
=
"
$BASECFLAGS
-Werror=declaration-after-statement"
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking if we can turn on
$CC
mixed sign comparison warning"
>
&5
$as_echo_n
"checking if we can turn on
$CC
mixed sign comparison warning... "
>
&6
;
}
ac_save_cc
=
"
$CC
"
CC
=
"
$CC
-Wsign-compare"
save_CFLAGS
=
"
$CFLAGS
"
if
${
ac_cv_enable_sign_compare_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_sign_compare_warning
=
yes
else
ac_cv_enable_sign_compare_warning
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
fi
CFLAGS
=
"
$save_CFLAGS
"
CC
=
"
$ac_save_cc
"
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_enable_sign_compare_warning
"
>
&5
$as_echo
"
$ac_cv_enable_sign_compare_warning
"
>
&6
;
}
if
test
$ac_cv_enable_sign_compare_warning
=
yes
then
BASECFLAGS
=
"
$BASECFLAGS
-Wsign-compare"
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking if we can turn on
$CC
unreachable code warning"
>
&5
$as_echo_n
"checking if we can turn on
$CC
unreachable code warning... "
>
&6
;
}
ac_save_cc
=
"
$CC
"
CC
=
"
$CC
-Wunreachable-code"
save_CFLAGS
=
"
$CFLAGS
"
if
${
ac_cv_enable_unreachable_code_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_unreachable_code_warning
=
yes
else
ac_cv_enable_unreachable_code_warning
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
fi
CFLAGS
=
"
$save_CFLAGS
"
CC
=
"
$ac_save_cc
"
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_enable_unreachable_code_warning
"
>
&5
$as_echo
"
$ac_cv_enable_unreachable_code_warning
"
>
&6
;
}
# Don't enable unreachable code warning in debug mode, since it usually
# results in non-standard code paths.
if
test
$ac_cv_enable_unreachable_code_warning
=
yes
&&
test
"
$Py_DEBUG
"
!=
"true"
then
BASECFLAGS
=
"
$BASECFLAGS
-Wunreachable-code"
fi
# if using gcc on alpha, use -mieee to get (near) full IEEE 754
# support. Without this, treatment of subnormals doesn't follow
# the standard.
...
...
configure.ac
Dosyayı görüntüle @
7f9cc935
...
...
@@ -1234,6 +1234,52 @@ yes)
BASECFLAGS="$BASECFLAGS -Werror=declaration-after-statement"
fi
AC_MSG_CHECKING(if we can turn on $CC mixed sign comparison warning)
ac_save_cc="$CC"
CC="$CC -Wsign-compare"
save_CFLAGS="$CFLAGS"
AC_CACHE_VAL(ac_cv_enable_sign_compare_warning,
AC_COMPILE_IFELSE(
[
AC_LANG_PROGRAM([[]], [[]])
],[
ac_cv_enable_sign_compare_warning=yes
],[
ac_cv_enable_sign_compare_warning=no
]))
CFLAGS="$save_CFLAGS"
CC="$ac_save_cc"
AC_MSG_RESULT($ac_cv_enable_sign_compare_warning)
if test $ac_cv_enable_sign_compare_warning = yes
then
BASECFLAGS="$BASECFLAGS -Wsign-compare"
fi
AC_MSG_CHECKING(if we can turn on $CC unreachable code warning)
ac_save_cc="$CC"
CC="$CC -Wunreachable-code"
save_CFLAGS="$CFLAGS"
AC_CACHE_VAL(ac_cv_enable_unreachable_code_warning,
AC_COMPILE_IFELSE(
[
AC_LANG_PROGRAM([[]], [[]])
],[
ac_cv_enable_unreachable_code_warning=yes
],[
ac_cv_enable_unreachable_code_warning=no
]))
CFLAGS="$save_CFLAGS"
CC="$ac_save_cc"
AC_MSG_RESULT($ac_cv_enable_unreachable_code_warning)
# Don't enable unreachable code warning in debug mode, since it usually
# results in non-standard code paths.
if test $ac_cv_enable_unreachable_code_warning = yes && test "$Py_DEBUG" != "true"
then
BASECFLAGS="$BASECFLAGS -Wunreachable-code"
fi
# if using gcc on alpha, use -mieee to get (near) full IEEE 754
# support. Without this, treatment of subnormals doesn't follow
# the standard.
...
...
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