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
8cf375de
Commit
8cf375de
authored
Jan 23, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Check the positive form of the warning options.
Checking the -Wno- form doesn't fail and causes warnings on gcc. Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
51e2966b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
configure
configure
+18
-18
configure.ac
configure.ac
+2
-2
No files found.
configure
View file @
8cf375de
...
...
@@ -14869,54 +14869,54 @@ $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
if
test
"x
$ac_cv_cflags__Wignored_qualifiers
"
=
xyes
;
then
:
EXTRACFLAGS
=
"
$EXTRACFLAGS
-Wignored-qualifiers"
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -W
no-
packed-not-aligned"
>
&5
$as_echo_n
"checking whether the compiler supports -W
no-
packed-not-aligned... "
>
&6
;
}
if
${
ac_cv_cflags__W
no_
packed_not_aligned
+
:
}
false
;
then
:
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -Wpacked-not-aligned"
>
&5
$as_echo_n
"checking whether the compiler supports -Wpacked-not-aligned... "
>
&6
;
}
if
${
ac_cv_cflags__Wpacked_not_aligned
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
else
ac_wine_try_cflags_saved
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-W
no-
packed-not-aligned"
CFLAGS
=
"
$CFLAGS
-Wpacked-not-aligned"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
int main(int argc, char **argv) { return 0; }
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
;
then
:
ac_cv_cflags__W
no_
packed_not_aligned
=
yes
ac_cv_cflags__Wpacked_not_aligned
=
yes
else
ac_cv_cflags__W
no_
packed_not_aligned
=
no
ac_cv_cflags__Wpacked_not_aligned
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
CFLAGS
=
$ac_wine_try_cflags_saved
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_cflags__W
no_
packed_not_aligned
"
>
&5
$as_echo
"
$ac_cv_cflags__W
no_
packed_not_aligned
"
>
&6
;
}
if
test
"x
$ac_cv_cflags__W
no_
packed_not_aligned
"
=
xyes
;
then
:
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_cflags__Wpacked_not_aligned
"
>
&5
$as_echo
"
$ac_cv_cflags__Wpacked_not_aligned
"
>
&6
;
}
if
test
"x
$ac_cv_cflags__Wpacked_not_aligned
"
=
xyes
;
then
:
EXTRACFLAGS
=
"
$EXTRACFLAGS
-Wno-packed-not-aligned"
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -W
no-
pragma-pack"
>
&5
$as_echo_n
"checking whether the compiler supports -W
no-
pragma-pack... "
>
&6
;
}
if
${
ac_cv_cflags__W
no_
pragma_pack
+
:
}
false
;
then
:
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -Wpragma-pack"
>
&5
$as_echo_n
"checking whether the compiler supports -Wpragma-pack... "
>
&6
;
}
if
${
ac_cv_cflags__Wpragma_pack
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
else
ac_wine_try_cflags_saved
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-W
no-
pragma-pack"
CFLAGS
=
"
$CFLAGS
-Wpragma-pack"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
int main(int argc, char **argv) { return 0; }
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
;
then
:
ac_cv_cflags__W
no_
pragma_pack
=
yes
ac_cv_cflags__Wpragma_pack
=
yes
else
ac_cv_cflags__W
no_
pragma_pack
=
no
ac_cv_cflags__Wpragma_pack
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
CFLAGS
=
$ac_wine_try_cflags_saved
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_cflags__W
no_
pragma_pack
"
>
&5
$as_echo
"
$ac_cv_cflags__W
no_
pragma_pack
"
>
&6
;
}
if
test
"x
$ac_cv_cflags__W
no_
pragma_pack
"
=
xyes
;
then
:
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_cflags__Wpragma_pack
"
>
&5
$as_echo
"
$ac_cv_cflags__Wpragma_pack
"
>
&6
;
}
if
test
"x
$ac_cv_cflags__Wpragma_pack
"
=
xyes
;
then
:
EXTRACFLAGS
=
"
$EXTRACFLAGS
-Wno-pragma-pack"
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -Wshift-overflow=2"
>
&5
...
...
configure.ac
View file @
8cf375de
...
...
@@ -1841,8 +1841,8 @@ then
WINE_TRY_CFLAGS([-Wdeclaration-after-statement])
WINE_TRY_CFLAGS([-Wempty-body])
WINE_TRY_CFLAGS([-Wignored-qualifiers])
WINE_TRY_CFLAGS([-W
no-packed-not-aligned
])
WINE_TRY_CFLAGS([-W
no-pragma-pack
])
WINE_TRY_CFLAGS([-W
packed-not-aligned],[EXTRACFLAGS="$EXTRACFLAGS -Wno-packed-not-aligned"
])
WINE_TRY_CFLAGS([-W
pragma-pack],[EXTRACFLAGS="$EXTRACFLAGS -Wno-pragma-pack"
])
WINE_TRY_CFLAGS([-Wshift-overflow=2])
WINE_TRY_CFLAGS([-Wstrict-prototypes])
WINE_TRY_CFLAGS([-Wtype-limits])
...
...
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