Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
c509bc4d
Commit
c509bc4d
authored
Feb 25, 2003
by
Mike McCormack
Committed by
Alexandre Julliard
Feb 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn off -Wpointer-arith if it generates warnings when including
string.h.
parent
efa2b0c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
4 deletions
+71
-4
configure
configure
+55
-2
configure.ac
configure.ac
+16
-2
No files found.
configure
View file @
c509bc4d
...
...
@@ -10668,8 +10668,9 @@ fi
if
test
"x
${
GCC
}
"
=
"xyes"
then
CFLAGS
=
"
$CFLAGS
-Wall -Wpointer-arith"
echo
"
$as_me
:
$LINENO
: checking for gcc strength-reduce bug"
>
&5
CFLAGS
=
"
$CFLAGS
-Wall"
echo
"
$as_me
:
$LINENO
: checking for gcc strength-reduce bug"
>
&5
echo
$ECHO_N
"checking for gcc strength-reduce bug...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_c_gcc_strength_bug
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
...
...
@@ -10830,6 +10831,58 @@ echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
then
CFLAGS
=
"
$CFLAGS
-gstabs+"
fi
saved_CFLAGS
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-Wpointer-arith -Werror"
echo
"
$as_me
:
$LINENO
: checking for broken string.h that generates warnings"
>
&5
echo
$ECHO_N
"checking for broken string.h that generates warnings...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_c_string_h_warnings
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
cat
>
conftest.
$ac_ext
<<
_ACEOF
#line
$LINENO
"configure"
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#include <string.h>
int
main ()
{
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_compile
\"
"
)
>
&5
(
eval
$ac_compile
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -s conftest.$ac_objext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_c_string_h_warnings
=
no
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_c_string_h_warnings
=
yes
fi
rm
-f
conftest.
$ac_objext
conftest.
$ac_ext
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_c_string_h_warnings
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_c_string_h_warnings
"
>
&6
CFLAGS
=
$saved_CFLAGS
if
test
"
$ac_cv_c_string_h_warnings
"
=
"no"
then
CFLAGS
=
"
$CFLAGS
-Wpointer-arith"
fi
fi
...
...
configure.ac
View file @
c509bc4d
...
...
@@ -634,11 +634,13 @@ then
AC_DEFINE(_FILE_OFFSET_BITS, 64, [Set this to 64 to enable 64-bit file support on Linux])
fi
dnl **** Check for gcc s
trength-reduce bug
****
dnl **** Check for gcc s
pecific options
****
if test "x${GCC}" = "xyes"
then
CFLAGS="$CFLAGS -Wall -Wpointer-arith"
CFLAGS="$CFLAGS -Wall"
dnl Check for strength-reduce bug
AC_CACHE_CHECK( [for gcc strength-reduce bug], ac_cv_c_gcc_strength_bug,
AC_TRY_RUN([
int L[[4]] = {0,1,2,3};
...
...
@@ -676,6 +678,18 @@ int main(void) {
then
CFLAGS="$CFLAGS -gstabs+"
fi
dnl Check for noisy string.h
saved_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -Wpointer-arith -Werror"
AC_CACHE_CHECK([for broken string.h that generates warnings], ac_cv_c_string_h_warnings,
AC_TRY_COMPILE([#include <string.h>],[],
[ac_cv_c_string_h_warnings=no],[ac_cv_c_string_h_warnings=yes]))
CFLAGS=$saved_CFLAGS
if test "$ac_cv_c_string_h_warnings" = "no"
then
CFLAGS="$CFLAGS -Wpointer-arith"
fi
fi
dnl **** Check how to define a function in assembly code ****
...
...
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