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
0d67ed54
Commit
0d67ed54
authored
Sep 07, 2016
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
permit intermingled declarations
parent
12337446
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
65 deletions
+0
-65
configure
configure
+0
-43
configure.ac
configure.ac
+0
-22
No files found.
configure
View file @
0d67ed54
...
...
@@ -6834,49 +6834,6 @@ $as_echo "$ac_cv_disable_unused_result_warning" >&6; }
BASECFLAGS
=
"
$BASECFLAGS
-Wno-unused-result"
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for -Werror=declaration-after-statement"
>
&5
$as_echo_n
"checking for -Werror=declaration-after-statement... "
>
&6
;
}
ac_save_cc
=
"
$CC
"
CC
=
"
$CC
-Werror=declaration-after-statement"
save_CFLAGS
=
"
$CFLAGS
"
if
${
ac_cv_declaration_after_statement_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_declaration_after_statement_warning
=
yes
else
ac_cv_declaration_after_statement_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_declaration_after_statement_warning
"
>
&5
$as_echo
"
$ac_cv_declaration_after_statement_warning
"
>
&6
;
}
if
test
$ac_cv_declaration_after_statement_warning
=
yes
then
CFLAGS_NODIST
=
"
$CFLAGS_NODIST
-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
"
...
...
configure.ac
View file @
0d67ed54
...
...
@@ -1542,28 +1542,6 @@ yes)
BASECFLAGS="$BASECFLAGS -Wno-unused-result"
fi
AC_MSG_CHECKING(for -Werror=declaration-after-statement)
ac_save_cc="$CC"
CC="$CC -Werror=declaration-after-statement"
save_CFLAGS="$CFLAGS"
AC_CACHE_VAL(ac_cv_declaration_after_statement_warning,
AC_COMPILE_IFELSE(
[
AC_LANG_PROGRAM([[]], [[]])
],[
ac_cv_declaration_after_statement_warning=yes
],[
ac_cv_declaration_after_statement_warning=no
]))
CFLAGS="$save_CFLAGS"
CC="$ac_save_cc"
AC_MSG_RESULT($ac_cv_declaration_after_statement_warning)
if test $ac_cv_declaration_after_statement_warning = yes
then
CFLAGS_NODIST="$CFLAGS_NODIST -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"
...
...
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