Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
f825f0d0
Commit
f825f0d0
authored
Dec 17, 2010
by
Marcus Meissner
Committed by
Alexandre Julliard
Dec 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure.ac: Add -Wlogical-op, if it's not noisy.
parent
61d2d807
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
3 deletions
+47
-3
configure
configure
+35
-2
configure.ac
configure.ac
+12
-1
No files found.
configure
View file @
f825f0d0
...
...
@@ -12229,8 +12229,8 @@ fi
saved_CFLAGS
=
"
$CFLAGS
"
CFLAGS
=
"
$CFLAGS
-Wpointer-arith -Werror"
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for broken string.h that generates warnings"
>
&5
$as_echo_n
"checking for broken string.h that generates warnings... "
>
&6
;
}
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for broken string.h that generates warnings
with -Wpointer-arith
"
>
&5
$as_echo_n
"checking for broken string.h that generates warnings
with -Wpointer-arith
... "
>
&6
;
}
if
test
"
${
ac_cv_c_string_h_warnings
+set
}
"
=
set
;
then
:
$as_echo_n
"(cached) "
>
&6
else
...
...
@@ -12260,6 +12260,39 @@ $as_echo "$ac_cv_c_string_h_warnings" >&6; }
EXTRACFLAGS
=
"
$EXTRACFLAGS
-Wpointer-arith"
fi
saved_CFLAGS
=
"
$CFLAGS
"
CFLAGS
=
"
$CFLAGS
-Wlogical-op -Werror"
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for broken string.h that generates warnings with -Wlogical-op"
>
&5
$as_echo_n
"checking for broken string.h that generates warnings with -Wlogical-op... "
>
&6
;
}
if
test
"
${
ac_cv_c_logicalop_noisy
+set
}
"
=
set
;
then
:
$as_echo_n
"(cached) "
>
&6
else
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
#include <string.h>
int
main ()
{
char*f(const char *h,char n) {return strchr(h,n);}
;
return 0;
}
_ACEOF
if
ac_fn_c_try_compile
"
$LINENO
"
;
then
:
ac_cv_c_logicalop_noisy
=
no
else
ac_cv_c_logicalop_noisy
=
yes
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_c_logicalop_noisy
"
>
&5
$as_echo
"
$ac_cv_c_logicalop_noisy
"
>
&6
;
}
CFLAGS
=
"
$saved_CFLAGS
"
if
test
"
$ac_cv_c_logicalop_noisy
"
=
"no"
then
EXTRACFLAGS
=
"
$EXTRACFLAGS
-Wlogical-op"
fi
if
test
"x
$enable_maintainer_mode
"
=
"xyes"
then
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -Werror"
>
&5
...
...
configure.ac
View file @
f825f0d0
...
...
@@ -1673,7 +1673,7 @@ then
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_CACHE_CHECK([for broken string.h that generates warnings
with -Wpointer-arith
], ac_cv_c_string_h_warnings,
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#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"
...
...
@@ -1681,6 +1681,17 @@ then
EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
fi
dnl Check for noisy string.h on logical ops
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wlogical-op -Werror"
AC_CACHE_CHECK([for broken string.h that generates warnings with -Wlogical-op], ac_cv_c_logicalop_noisy,
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]], [[char*f(const char *h,char n) {return strchr(h,n);}]])],[ac_cv_c_logicalop_noisy=no],[ac_cv_c_logicalop_noisy=yes]))
CFLAGS="$saved_CFLAGS"
if test "$ac_cv_c_logicalop_noisy" = "no"
then
EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
fi
dnl Enable -Werror for maintainer mode
if test "x$enable_maintainer_mode" = "xyes"
then
...
...
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