Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
bada4c39
Commit
bada4c39
authored
Apr 25, 2010
by
Matthias Klose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure.in: Avoid autoconf warning: Assume C89 semantics that
RETSIGTYPE is always void (issue #8510).
parent
44d3d785
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
43 deletions
+4
-43
configure
configure
+2
-30
configure.in
configure.in
+1
-12
pyconfig.h.in
pyconfig.h.in
+1
-1
No files found.
configure
View file @
bada4c39
#! /bin/sh
# From configure.in Revision: 8047
5
.
# From configure.in Revision: 8047
8
.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.65 for python 3.2.
#
...
...
@@ -6417,39 +6417,11 @@ _ACEOF
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking return type of signal handlers"
>
&5
$as_echo_n
"checking return type of signal handlers... "
>
&6
;
}
if
test
"
${
ac_cv_type_signal
+set
}
"
=
set
;
then
:
$as_echo_n
"(cached) "
>
&6
else
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
#include <sys/types.h>
#include <signal.h>
int
main ()
{
return *(signal (0, 0)) (0) == 1;
;
return 0;
}
_ACEOF
if
ac_fn_c_try_compile
"
$LINENO
"
;
then
:
ac_cv_type_signal
=
int
else
ac_cv_type_signal
=
void
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_type_signal
"
>
&5
$as_echo
"
$ac_cv_type_signal
"
>
&6
;
}
cat
>>
confdefs.h
<<
_ACEOF
#define RETSIGTYPE
$ac_cv_type_signal
#define RETSIGTYPE
void
_ACEOF
ac_fn_c_check_type
"
$LINENO
"
"size_t"
"ac_cv_type_size_t"
"
$ac_includes_default
"
if
test
"x
$ac_cv_type_size_t
"
=
x
""
yes
;
then
:
...
...
configure.in
View file @
bada4c39
...
...
@@ -1374,18 +1374,7 @@ EOF
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_DIAGNOSE([obsolete],[your code may safely assume C89 semantics that RETSIGTYPE is void.
Remove this warning and the `AC_CACHE_CHECK' when you adjust the code.])dnl
AC_CACHE_CHECK([return type of signal handlers],[ac_cv_type_signal],[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([#include <sys/types.h>
#include <signal.h>
],
[return *(signal (0, 0)) (0) == 1;])],
[ac_cv_type_signal=int],
[ac_cv_type_signal=void])])
AC_DEFINE_UNQUOTED([RETSIGTYPE],[$ac_cv_type_signal],[Define as the return type of signal handlers
(`int' or `void').])
AC_DEFINE_UNQUOTED([RETSIGTYPE],[void],[assume C89 semantics that RETSIGTYPE is always void])
AC_TYPE_SIZE_T
AC_TYPE_UID_T
AC_TYPE_UINT32_T
...
...
pyconfig.h.in
View file @
bada4c39
...
...
@@ -958,7 +958,7 @@
/* Define as the size of the unicode type. */
#undef Py_UNICODE_SIZE
/*
Define as the return type of signal handlers (`int' or `void').
*/
/*
assume C89 semantics that RETSIGTYPE is always void
*/
#undef RETSIGTYPE
/* Define if setpgrp() must be called as setpgrp(0, 0). */
...
...
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